diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-03-04 10:37:01 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-03-04 10:37:01 -0800 |
commit | 580bd53290c73ccf66d2c41bd964459c7788451e (patch) | |
tree | 1c65de66d6e09402a4e76da7f465050dc625526c | |
parent | f70abc7ebfaad7bc5a39b3cee04488b38f504c6e (diff) |
explain EXPORTED_FUNCTIONS better
-rw-r--r-- | src/settings.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/settings.js b/src/settings.js index 7f9fbabf..02f6c8b5 100644 --- a/src/settings.js +++ b/src/settings.js @@ -311,6 +311,10 @@ var EXPORTED_FUNCTIONS = ['_main', '_malloc']; // through LLVM dead code elimination, and also made accessible outside of // the generated code even after running closure compiler (on "Module"). // Note the necessary prefix of "_". + // Note also that this is the full list of exported functions - if you + // have a main() function and want it to run, you must include it in this + // list (as _main is by default in this value, and if you override it + // without keeping it there, you are in effect removing it). var EXPORT_ALL = 0; // If true, we export all the symbols. Note that this does *not* affect LLVM, so it can // still eliminate functions as dead. This just exports them on the Module object. var EXPORT_BINDINGS = 0; // Export all bindings generator functions (prefixed with emscripten_bind_). This |