aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-16 10:27:51 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-03-16 10:27:51 -0700
commiteb3a262803919851a8079895c0add11628c760b0 (patch)
tree4026c68ad681a057e852e0bd4eaa60e096bb14e9 /tools
parent9b64a956949247cb838f03723aa2cde1598e65fc (diff)
get bindings generator to work in asm.js (except for customizeVTable)
Diffstat (limited to 'tools')
-rwxr-xr-xtools/bindings_generator.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/bindings_generator.py b/tools/bindings_generator.py
index d2c165a2..d610ab54 100755
--- a/tools/bindings_generator.py
+++ b/tools/bindings_generator.py
@@ -62,6 +62,10 @@ Notes:
string on the *stack*. The C string will live for the current
function call. If you need it for longer, you need to create a copy
in your C++ code.
+
+ * You should compile with -s EXPORT_BINDINGS=1 in order for the
+ autogenerated bindings functions to be exported. This is necessary
+ when compiling in asm.js mode.
'''
import os, sys, glob, re
@@ -464,6 +468,7 @@ Module['getClass'] = getClass;
function customizeVTable(object, replacementPairs) {
// Does not handle multiple inheritance
+ // Does not work with asm.js
// Find out vtable size
var vTable = getValue(object.ptr, 'void*');