diff options
Diffstat (limited to 'windows/main.c')
-rw-r--r-- | windows/main.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/windows/main.c b/windows/main.c index 09198d5d0..86e06b193 100644 --- a/windows/main.c +++ b/windows/main.c @@ -43,6 +43,18 @@ static char **respaths; /** resource search path vector. */ char *options_file_location; +/** + * Cause an abnormal program termination. + * + * \note This never returns and is intended to terminate without any cleanup. + * + * \param error The message to display to the user. + */ +static void die(const char *error) +{ + exit(1); +} + static nsurl *gui_get_resource_url(const char *path) { char buf[PATH_MAX]; |