| 37 | } |
| 38 | |
| 39 | void argey(void* arg) { |
| 40 | static int counter = 0; |
| 41 | assert((long)arg == 17); |
| 42 | counter++; |
| 43 | printf("argey: %d\n", counter); |
| 44 | if (counter == 5) { |
| 45 | emscripten_cancel_main_loop(); |
| 46 | // The main loop is now done so its ok to run atexit handlers. |
| 47 | exit_ok = true; |
| 48 | exit(0); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | void mainey() { |
| 53 | static int counter = 0; |