diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-09 20:34:37 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-09 20:34:37 -0700 |
commit | f58e77da332cb0f8123c0c062c275c63783736a7 (patch) | |
tree | 518251ccf13fd13e62604306f0e121034a79f82d /src/settings.js | |
parent | 064206f86c62c546b1860cb14e4f303b6056b5bc (diff) |
make noInitialRun and INVOKE_RUN refer to main(), not run(). run() need not call main(), and is necessary to set things up even if you call main() manually
Diffstat (limited to 'src/settings.js')
-rw-r--r-- | src/settings.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/settings.js b/src/settings.js index f9b47228..78a21616 100644 --- a/src/settings.js +++ b/src/settings.js @@ -35,8 +35,8 @@ var ASSERTIONS = 1; // Whether we should add runtime assertions, for example to // if code flow runs into a fault var VERBOSE = 0; // When set to 1, will generate more verbose output during compilation. -var INVOKE_RUN = 1; // Whether we will call run(). Disable if you embed the generated - // code in your own, and will call run() yourself at the right time +var INVOKE_RUN = 1; // Whether we will run the main() function. Disable if you embed the generated + // code in your own, and will call main() yourself at the right time. var INIT_HEAP = 0; // Whether to initialize memory anywhere other than the stack to 0. var TOTAL_STACK = 5*1024*1024; // The total stack size. There is no way to enlarge the stack, so this // value must be large enough for the program's requirements. If |