summaryrefslogtreecommitdiffstats
path: root/core/os/os.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/os/os.h')
-rw-r--r--core/os/os.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/os/os.h b/core/os/os.h
index e0dda0b155..4f0df1543f 100644
--- a/core/os/os.h
+++ b/core/os/os.h
@@ -56,7 +56,8 @@ class OS {
bool _verbose_stdout = false;
bool _debug_stdout = false;
String _local_clipboard;
- int _exit_code = EXIT_FAILURE; // unexpected exit is marked as failure
+ // Assume success by default, all failure cases need to set EXIT_FAILURE explicitly.
+ int _exit_code = EXIT_SUCCESS;
bool _allow_hidpi = false;
bool _allow_layered = false;
bool _stdout_enabled = true;