diff options
author | David Walter Seikel | 2012-02-03 21:55:46 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-02-03 21:55:46 +1000 |
commit | 02c621b997024565426ec01f9cea262234ef664c (patch) | |
tree | ed3cc1784f07c6f4602df23ad284f2942a7035af | |
parent | Final part of the crement Lua implementation. (diff) | |
download | SledjHamr-02c621b997024565426ec01f9cea262234ef664c.zip SledjHamr-02c621b997024565426ec01f9cea262234ef664c.tar.gz SledjHamr-02c621b997024565426ec01f9cea262234ef664c.tar.bz2 SledjHamr-02c621b997024565426ec01f9cea262234ef664c.tar.xz |
Make it easier to debug misplaced ends.
-rw-r--r-- | LuaSL/src/LuaSL_compile.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index a72cab3..2ef8867 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c | |||
@@ -1743,13 +1743,16 @@ static void outputRawStatement(FILE *file, outputMode mode, LSL_Statement *state | |||
1743 | outputRawStatement(file, mode, statement->elseBlock); | 1743 | outputRawStatement(file, mode, statement->elseBlock); |
1744 | if (LSL_IF == statement->type) | 1744 | if (LSL_IF == statement->type) |
1745 | { | 1745 | { |
1746 | #if 1 | ||
1746 | fprintf(file, " end\n"); | 1747 | fprintf(file, " end\n"); |
1747 | // fprintf(file, " end --[["); | 1748 | #else |
1748 | // if (statement->parenthesis) | 1749 | fprintf(file, " end --[["); |
1749 | // outputRawParenthesisToken(file, mode, statement->parenthesis, ""); | 1750 | if (statement->parenthesis) |
1750 | // else | 1751 | outputRawParenthesisToken(file, mode, statement->parenthesis, ""); |
1751 | // outputLeaf(file, mode, statement->expressions); | 1752 | else |
1752 | // fprintf(file, "]]\n"); | 1753 | outputLeaf(file, mode, statement->expressions); |
1754 | fprintf(file, "]]\n"); | ||
1755 | #endif | ||
1753 | } | 1756 | } |
1754 | return; | 1757 | return; |
1755 | } | 1758 | } |