diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-19 15:21:02 +0100 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-11-21 20:47:01 +0100 |
commit | c115a4fee69345817d31b85de98b03e7a15f5841 (patch) | |
tree | a6c579a2c2f8f9442ce17c095bbb6420cc371811 | |
parent | c00cd96a4b4b3d367add73b307af8e4fbbcd3e02 (diff) |
fix bug with ignore label comments inside functions
-rwxr-xr-x | emscripten.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py index 42603cd7..76caf8d5 100755 --- a/emscripten.py +++ b/emscripten.py @@ -93,7 +93,6 @@ def emscript(infile, settings, outfile, libraries=[]): in_func = False ll_lines = open(infile).readlines() for line in ll_lines: - if line.startswith(';'): continue if in_func: funcs[-1].append(line) if line.startswith('}'): @@ -101,6 +100,7 @@ def emscript(infile, settings, outfile, libraries=[]): funcs[-1] = ''.join(funcs[-1]) pre.append(line) # pre needs it to, so we know about all implemented functions else: + if line.startswith(';'): continue if line.startswith('define '): in_func = True funcs.append([line]) |