diff options
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 5 |
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); |