aboutsummaryrefslogtreecommitdiff
path: root/src/zencore
diff options
context:
space:
mode:
Diffstat (limited to 'src/zencore')
-rw-r--r--src/zencore/include/zencore/zencore.h1
-rw-r--r--src/zencore/zencore.cpp6
2 files changed, 7 insertions, 0 deletions
diff --git a/src/zencore/include/zencore/zencore.h b/src/zencore/include/zencore/zencore.h
index 5bcd77239..d4173e128 100644
--- a/src/zencore/include/zencore/zencore.h
+++ b/src/zencore/include/zencore/zencore.h
@@ -329,6 +329,7 @@ namespace zen {
ZENCORE_API bool IsApplicationExitRequested();
ZENCORE_API void RequestApplicationExit(int ExitCode);
+ZENCORE_API int ApplicationExitCode();
ZENCORE_API bool IsDebuggerPresent();
ZENCORE_API void SetIsInteractiveSession(bool Value);
ZENCORE_API bool IsInteractiveSession();
diff --git a/src/zencore/zencore.cpp b/src/zencore/zencore.cpp
index 96d61a0ab..ae3d3934d 100644
--- a/src/zencore/zencore.cpp
+++ b/src/zencore/zencore.cpp
@@ -99,6 +99,12 @@ RequestApplicationExit(int ExitCode)
s_ApplicationExitRequested = true;
}
+int
+ApplicationExitCode()
+{
+ return s_ApplicationExitCode;
+}
+
#if ZEN_WITH_TESTS
void
zencore_forcelinktests()