| 98 | } |
| 99 | |
| 100 | int main() |
| 101 | { |
| 102 | // Insist dynamic initialization that the compiler can't possibly optimize away. |
| 103 | pointerToFunction = (tick() == 0 && tick() == 1000000) ? 0 : &foreignFunctionThatTakesThreeParameters; |
| 104 | |
| 105 | #if defined(__EMSCRIPTEN__) && !defined(BUILD_FOR_SHELL) |
| 106 | emscripten_set_main_loop(main_loop, 0, 0); |
| 107 | #else |
| 108 | for(int i = 0; i < totalRuns; ++i) |
| 109 | main_loop(); |
| 110 | #endif |
| 111 | } |