aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-01-18 18:23:28 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-01-18 18:23:28 -0800
commitd89113a6bb5794a055fcf3cf2ecdc087616ccc65 (patch)
tree094d2b7d8a01208d914058a427a7fc30c5c8b617 /emscripten.py
parentad3a9f3cc636d1ac85569739f7565c8858fbe9a3 (diff)
show empty function table error only in debug mode
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/emscripten.py b/emscripten.py
index 4cbbba19..2a0fa7a5 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -307,7 +307,7 @@ def emscript(infile, settings, outfile, libraries=[]):
for use in set(re.findall(r'{{{ FTM_[\w\d_$]+ }}}', funcs_js)):
sig = use[8:len(use)-4]
if sig not in last_forwarded_json['Functions']['tables']:
- print >> sys.stderr, 'add empty function table', sig
+ if DEBUG: print >> sys.stderr, 'add empty function table', sig
last_forwarded_json['Functions']['tables'][sig] = 'var FUNCTION_TABLE_' + sig + ' = [0,0];\n'
def make_table(sig, raw):