aboutsummaryrefslogtreecommitdiff
path: root/emscripten.py
diff options
context:
space:
mode:
Diffstat (limited to 'emscripten.py')
-rwxr-xr-xemscripten.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/emscripten.py b/emscripten.py
index aeef5f9a..ae3e671f 100755
--- a/emscripten.py
+++ b/emscripten.py
@@ -105,8 +105,7 @@ def emscript(infile, settings, outfile, libraries=[]):
if line.startswith(';'): continue
if line.startswith('define '):
in_func = True
- ident = shared.JS.to_nice_ident(line.split('(')[0].split(' ')[-1])
- funcs.append((ident, [line]))
+ funcs.append((line, [line])) # use the entire line as the identifier
pre.append(line) # pre needs it to, so we know about all implemented functions
elif line.find(' = type { ') > 0:
pre.append(line) # type