aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-06-29 19:16:08 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-06-29 19:16:08 -0700
commit0e9344a42800afd65b3c74c86e79ed78c15161f0 (patch)
tree44dfad042648a02fed1fe76c002f677f5b70e497 /src/parseTools.js
parent8fc2acdc4ec487130a98f26e3e8e2a70bd54de96 (diff)
indexize external functions (for shared libraries, primarily), +some code cleanup around that. fixed issues 38
Diffstat (limited to 'src/parseTools.js')
-rw-r--r--src/parseTools.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index 4f0cda35..fe71ff3b 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -695,7 +695,7 @@ function makeGetValue(ptr, pos, type, noNeedFirst, unsigned) {
}
function indexizeFunctions(value) {
- if (value in Functions.currFunctions) {
+ if (value in Functions.currFunctions || value in Functions.currExternalFunctions) {
if (BUILD_AS_SHARED_LIB) {
return '(FUNCTION_TABLE_OFFSET + ' + Functions.getIndex(value) + ')';
} else {