Skip to content

Commit b73a5a3

Browse files
committed
Improve code
1 parent 3bd1721 commit b73a5a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

st.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ void main_loop(void)
960960
#ifdef __EMSCRIPTEN__
961961
emscripten_cancel_main_loop();
962962
#else
963-
exit(0);
963+
exit(EXIT_SUCCESS);
964964
#endif
965965
}
966966

@@ -1028,11 +1028,11 @@ int main(void)
10281028
#ifdef __EMSCRIPTEN__
10291029
emscripten_set_main_loop(main_loop, 0, true);
10301030
#else
1031-
while (1) {
1031+
while (true) {
10321032
main_loop();
10331033
SDL_Delay(1000/60);
10341034
}
10351035
#endif
10361036

1037-
return 0;
1037+
return EXIT_SUCCESS;
10381038
}

0 commit comments

Comments
 (0)