Skip to content

Commit

Permalink
fix repeating global_funcs for fastcomp
Browse files Browse the repository at this point in the history
  • Loading branch information
kripken committed Nov 29, 2013
1 parent 20e4867 commit 77d7add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emscripten.py
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ def fix_item(item):
pass
# If no named globals, only need externals
global_vars = []
global_funcs = ['_' + key for key, value in forwarded_json['Functions']['libraryFunctions'].iteritems() if value != 2] + metadata['externs']
global_funcs = list(set(['_' + key for key, value in forwarded_json['Functions']['libraryFunctions'].iteritems() if value != 2] + metadata['externs']))
def math_fix(g):
return g if not g.startswith('Math_') else g.split('_')[1]
asm_global_funcs = ''.join([' var ' + g.replace('.', '_') + '=global.' + g + ';\n' for g in maths]) + \
Expand Down

0 comments on commit 77d7add

Please sign in to comment.