diff options
author | max99x <max99x@gmail.com> | 2011-06-26 00:24:46 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-06-26 00:24:46 +0300 |
commit | b7cd8aad767e9cb4b0555a60c489966df8dc9405 (patch) | |
tree | 4c4eec0c69e1ad03d83588d96f35d87bcedcdbf3 /src/parseTools.js | |
parent | 37a1ccacaa79addac6094983897d67e0a8630160 (diff) |
Fixed function indexing issues between parent and child;
Child no longer includes library, using the parent's instead.
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 98ebd32c..e307a710 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -694,7 +694,11 @@ function makeGetValue(ptr, pos, type, noNeedFirst, unsigned) { function indexizeFunctions(value) { // TODO: Also check for externals if (value in Functions.currFunctions) { - return Functions.getIndex(value); + if (BUILD_AS_SHARED_LIB) { + return '(FUNCTION_TABLE_OFFSET + ' + Functions.getIndex(value) + ')'; + } else { + return Functions.getIndex(value); + } } if (value && value[0] && value[0] == '_') { var rootIdent = LibraryManager.getRootIdent(value.slice(1)); |