42 EXIT_GENERIC_ERROR = 1,
45 EXIT_BUILTIN_ERROR = 2,
48 EXIT_LICENSE_ERROR = 3,
51 EXIT_SOCKET_ERROR = 4,
54 EXIT_PARSE_UI_ERROR = 5,
60 EXIT_PROCESS_RUN_ERROR = 100
92 static bool isExiting();
97 static bool isImplicitlyExiting();
101 static void runExitCallbacks();
110 static int addExitCallback(
void (*exitcallback)(
void *
data),
115 static int removeExitCallback(
void (*exitcallback)(
void *
data),
119 static void removeAllExitCallbacks();
124 static void registerQtAppExitCallback(
125 void (*exitcallback)(
void *
data),
134 static void registerPyAtExitCallback(
135 void (*exitcallback)(
void *
data),
static SYS_FUNC_NORETURN void exit(UT_ExitCode exit_code=EXIT_OK)
Calls exit(), which implicitly leads to our callbacks being called.
#define SYS_FUNC_NORETURN
static SYS_FUNC_NORETURN void success()
Synonym for exit(UT_Exit::EXIT_OK).
static SYS_FUNC_NORETURN void fail(const UT_ExitCode exit_code=EXIT_GENERIC_ERROR)
Synonym for exit(UT_Exit::EXIT_GENERIC_ERROR)