Handling setjmp longjmp according to spec, to prevent clobbering
@@ -296,7 +296,8 @@ int main(int argc, char* args[])
int32_t lag = 0;
SDL_Event event;
SDL_SetRenderDrawColor( engine.renderer, 0x00, 0x00, 0x00, 0xFF);
- result = setjmp(loop_exit);
+ if (setjmp(loop_exit) == 0) {
+
while (engine.running) {
// processInput()
@@ -423,6 +424,7 @@ int main(int argc, char* args[])
SDL_Delay(1);
}
}
+ }
vm_cleanup:
if (makeGif) {
