We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 683366e commit 552f67bCopy full SHA for 552f67b
1 file changed
src/platform/console/main.cpp
@@ -398,6 +398,12 @@ bool wait_for_file(const char *file, uint32_t modifiedTime) {
398
}
399
#endif
400
401
+static void exit_handler(void) {
402
+ if (count_tasks()) {
403
+ err_stackunderflow();
404
+ }
405
+}
406
+
407
//
408
// program entry point
409
@@ -416,6 +422,7 @@ int main(int argc, char *argv[]) {
416
422
os_graphics = 1;
417
423
418
424
console_init();
425
+ atexit(exit_handler);
419
426
420
427
char *file = nullptr;
421
428
bool tmpFile = false;
0 commit comments