diff options
author | Danny Holman <dholman@gymli.org> | 2024-10-25 23:04:17 -0500 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2024-10-25 23:04:17 -0500 |
commit | 42bbbe9185019df04c6aaa05ba4e815bb2a1ab67 (patch) | |
tree | 892506ac47f5b15f430f6f226d032c86f61aeb5e /core/abort.c | |
parent | render: add a skeleton DirectX implementation (diff) | |
download | rune-engine-42bbbe9185019df04c6aaa05ba4e815bb2a1ab67.tar.gz rune-engine-42bbbe9185019df04c6aaa05ba4e815bb2a1ab67.tar.zst rune-engine-42bbbe9185019df04c6aaa05ba4e815bb2a1ab67.zip |
core: call the system exit function when aborting
During an abort procedure, the system's exit function should be called
to terminate the running application.
Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to '')
-rw-r--r-- | core/abort.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/abort.c b/core/abort.c index 08f9d1c..edc7d29 100644 --- a/core/abort.c +++ b/core/abort.c @@ -32,4 +32,5 @@ void rune_abort(void) { log_output(LOG_INFO, "Abort called, printing stack trace"); _stack_trace(); rune_exit(); + exit(-1); } |