aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-10-23 19:43:59 -0700
committeralon@honor <none@none>2010-10-23 19:43:59 -0700
commit8a0d19fd34aadbe9209103fe2e7925539ee30138 (patch)
treefb8ee05895dbae3fd9a641dd9f62ad601fdacb52 /src
parentaf29458d537a001b641629993fc09814063e81ce (diff)
better LABEL_DEBUG
Diffstat (limited to 'src')
-rw-r--r--src/jsifier.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index a5909344..4826e035 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -568,7 +568,10 @@ function JSify(data) {
});
makeFuncLineZyme('return', function(item) {
var ret = RuntimeGenerator.stackExit(item.funcData.initialStack) + ';\n';
- if (LABEL_DEBUG) ret += "INDENT = INDENT.substr(0, INDENT.length-2);\n";
+ if (LABEL_DEBUG) {
+ ret += "print(INDENT + 'Exiting: " + item.funcData.ident + "');\n"
+ + "INDENT = INDENT.substr(0, INDENT.length-2);\n";
+ }
ret += 'return';
if (item.value) {
ret += ' ' + finalizeLLVMParameter(item.value);