2009-06-04 15:50:32 +00:00
|
|
|
/*
|
2012-08-16 03:47:55 +00:00
|
|
|
* $Id$
|
2009-06-04 15:50:32 +00:00
|
|
|
*
|
2019-06-06 05:28:23 +00:00
|
|
|
Copyright (c) 2006-2019 Chung, Hyung-Hwan. All rights reserved.
|
2009-06-04 15:50:32 +00:00
|
|
|
|
2014-11-19 14:42:24 +00:00
|
|
|
Redistribution and use in source and binary forms, with or without
|
|
|
|
modification, are permitted provided that the following conditions
|
|
|
|
are met:
|
|
|
|
1. Redistributions of source code must retain the above copyright
|
|
|
|
notice, this list of conditions and the following disclaimer.
|
|
|
|
2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
notice, this list of conditions and the following disclaimer in the
|
|
|
|
documentation and/or other materials provided with the distribution.
|
2009-06-04 15:50:32 +00:00
|
|
|
|
2014-11-19 14:42:24 +00:00
|
|
|
THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
|
|
|
|
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
2009-06-04 15:50:32 +00:00
|
|
|
*/
|
|
|
|
|
2016-04-28 15:29:28 +00:00
|
|
|
#include <qse/cmn/str.h>
|
2016-04-29 03:55:42 +00:00
|
|
|
#include "mem-prv.h"
|
2009-06-05 07:36:02 +00:00
|
|
|
|
2012-12-06 13:02:46 +00:00
|
|
|
#if defined(HAVE_EXECINFO_H)
|
2009-06-23 22:53:22 +00:00
|
|
|
# include <execinfo.h>
|
|
|
|
# include <stdlib.h>
|
|
|
|
#endif
|
|
|
|
|
2011-03-15 09:40:35 +00:00
|
|
|
#if defined(_WIN32)
|
2011-03-17 02:37:06 +00:00
|
|
|
# include <windows.h>
|
|
|
|
#elif defined(__OS2__)
|
|
|
|
# define INCL_DOSPROCESS
|
2016-04-28 14:33:10 +00:00
|
|
|
# define INCL_DOSFILEMGR
|
2011-03-15 09:40:35 +00:00
|
|
|
# include <os2.h>
|
2011-05-04 08:00:38 +00:00
|
|
|
#elif defined(__DOS__)
|
|
|
|
# include <dos.h>
|
|
|
|
# include <dosfunc.h>
|
2012-04-27 14:33:14 +00:00
|
|
|
#elif defined(vms) || defined(__vms)
|
2012-05-31 07:16:31 +00:00
|
|
|
# define __NEW_STARLET 1
|
2012-04-27 14:33:14 +00:00
|
|
|
# include <starlet.h> /* (SYS$...) */
|
|
|
|
# include <ssdef.h> /* (SS$...) */
|
2012-05-28 07:11:13 +00:00
|
|
|
# include <lib$routines.h> /* (lib$...) */
|
2014-04-22 15:30:28 +00:00
|
|
|
#elif defined(macintosh)
|
|
|
|
# include <Process.h>
|
|
|
|
# include <Dialogs.h>
|
|
|
|
# include <TextUtils.h>
|
|
|
|
# include <qse/cmn/str.h>
|
2009-06-05 07:36:02 +00:00
|
|
|
#else
|
|
|
|
# include "syscall.h"
|
|
|
|
#endif
|
|
|
|
|
2018-06-25 10:51:24 +00:00
|
|
|
void qse_assert_failed (
|
2016-04-28 05:52:35 +00:00
|
|
|
const qse_char_t* expr, const qse_char_t* desc,
|
|
|
|
const qse_char_t* file, qse_size_t line)
|
2009-06-05 07:36:02 +00:00
|
|
|
{
|
2016-04-28 05:52:35 +00:00
|
|
|
#if defined(_WIN32)
|
|
|
|
HANDLE stderr;
|
2009-06-05 07:36:02 +00:00
|
|
|
|
2016-04-28 05:52:35 +00:00
|
|
|
stderr = GetStdHandle (STD_ERROR_HANDLE);
|
|
|
|
if (stderr != INVALID_HANDLE_VALUE)
|
2009-06-05 07:36:02 +00:00
|
|
|
{
|
2016-04-28 05:52:35 +00:00
|
|
|
DWORD mode;
|
|
|
|
if (GetConsoleMode (stderr, &mode) == FALSE)
|
|
|
|
stderr = INVALID_HANDLE_VALUE;
|
2009-06-05 07:36:02 +00:00
|
|
|
}
|
|
|
|
|
2016-04-28 05:52:35 +00:00
|
|
|
if (stderr == INVALID_HANDLE_VALUE)
|
2009-06-05 07:36:02 +00:00
|
|
|
{
|
2016-04-28 05:52:35 +00:00
|
|
|
/* Use a message box if stderr is not available */
|
|
|
|
|
|
|
|
qse_char_t tmp[1024];
|
|
|
|
qse_strxfmt (tmp, QSE_COUNTOF(tmp),
|
2016-04-28 14:33:10 +00:00
|
|
|
QSE_T("[FILE %s LINE %lu]\r\n%s%s%s"),
|
2016-04-28 05:52:35 +00:00
|
|
|
file, line, expr,
|
|
|
|
(desc? QSE_T("\n\n"): QSE_T("")),
|
|
|
|
(desc? desc: QSE_T(""))
|
|
|
|
);
|
|
|
|
MessageBox (QSE_NULL, tmp, QSE_T("ASSERTION FAILURE"), MB_OK | MB_ICONERROR);
|
2009-06-05 07:36:02 +00:00
|
|
|
}
|
2016-04-28 05:52:35 +00:00
|
|
|
else
|
|
|
|
{
|
|
|
|
qse_char_t tmp[1024];
|
|
|
|
DWORD written;
|
2016-04-28 15:29:28 +00:00
|
|
|
static qse_char_t* static_header = QSE_T("=[ASSERTION FAILURE]===========================================================\r\n");
|
|
|
|
static qse_char_t* static_footer = QSE_T("===============================================================================\r\n");
|
2016-04-28 05:52:35 +00:00
|
|
|
|
2016-04-28 15:29:28 +00:00
|
|
|
WriteConsole (stderr, static_header, qse_strlen(static_header), &written, QSE_NULL);
|
2016-04-28 05:52:35 +00:00
|
|
|
|
2016-04-28 14:33:10 +00:00
|
|
|
qse_strxfmt (tmp, QSE_COUNTOF(tmp), QSE_T("[FILE %s LINE %lu]\r\n"), file, (unsigned long)line);
|
|
|
|
WriteConsole (stderr, tmp, qse_strlen(tmp), &written, QSE_NULL);
|
2016-04-28 05:52:35 +00:00
|
|
|
|
2016-04-28 14:33:10 +00:00
|
|
|
WriteConsole (stderr, QSE_T("[EXPRESSION] "), 13, &written, QSE_NULL);
|
|
|
|
WriteConsole (stderr, expr, qse_strlen(expr), &written, QSE_NULL);
|
|
|
|
WriteConsole (stderr, QSE_T("\r\n"), 2, &written, QSE_NULL);
|
2009-06-05 07:36:02 +00:00
|
|
|
|
2016-04-28 05:52:35 +00:00
|
|
|
if (desc)
|
|
|
|
{
|
2016-04-28 14:33:10 +00:00
|
|
|
WriteConsole (stderr, QSE_T("[DESCRIPTION] "), 14, &written, QSE_NULL);
|
|
|
|
WriteConsole (stderr, desc, qse_strlen(desc), &written, QSE_NULL);
|
|
|
|
WriteConsole (stderr, QSE_T("\r\n"), 2, &written, QSE_NULL);
|
2016-04-28 05:52:35 +00:00
|
|
|
}
|
2016-04-28 15:29:28 +00:00
|
|
|
|
|
|
|
WriteConsole (stderr, static_header, qse_strlen(static_footer), &written, QSE_NULL);
|
2009-06-05 07:36:02 +00:00
|
|
|
}
|
2016-04-28 05:52:35 +00:00
|
|
|
#elif defined(__OS2__)
|
|
|
|
HFILE stderr = (HFILE)2;
|
2016-04-28 14:33:10 +00:00
|
|
|
ULONG written;
|
2016-04-28 05:52:35 +00:00
|
|
|
qse_mchar_t tmp[1024];
|
2016-04-28 15:29:28 +00:00
|
|
|
static qse_mchar_t* static_header = QSE_MT("=[ASSERTION FAILURE]===========================================================\r\n");
|
|
|
|
static qse_mchar_t* static_footer = QSE_MT("===============================================================================\r\n");
|
2009-06-04 15:50:32 +00:00
|
|
|
|
2016-04-28 15:29:28 +00:00
|
|
|
DosWrite (stderr, static_header, qse_mbslen(static_header), &written);
|
2016-04-28 05:52:35 +00:00
|
|
|
|
|
|
|
#if defined(QSE_CHAR_IS_MCHAR)
|
2016-04-28 14:33:10 +00:00
|
|
|
qse_mbsxfmt (tmp, QSE_COUNTOF(tmp), QSE_MT("FILE %hs LINE %lu\r\n"), file, (unsigned long)line);
|
2016-04-28 05:52:35 +00:00
|
|
|
#else
|
2016-04-28 14:33:10 +00:00
|
|
|
qse_mbsxfmt (tmp, QSE_COUNTOF(tmp), QSE_MT("FILE %ls LINE %lu\r\n"), file, (unsigned long)line);
|
2016-04-28 05:52:35 +00:00
|
|
|
#endif
|
|
|
|
DosWrite (stderr, tmp, qse_mbslen(tmp), &written);
|
|
|
|
|
|
|
|
#if defined(QSE_CHAR_IS_MCHAR)
|
2016-04-28 14:33:10 +00:00
|
|
|
qse_mbsxfmt (tmp, QSE_COUNTOF(tmp), QSE_MT("[EXPRESSION] %hs\r\n"), expr);
|
2016-04-28 05:52:35 +00:00
|
|
|
#else
|
2016-04-28 14:33:10 +00:00
|
|
|
qse_mbsxfmt (tmp, QSE_COUNTOF(tmp), QSE_MT("[EXPRESSION] %ls\r\n"), expr);
|
2016-04-28 05:52:35 +00:00
|
|
|
#endif
|
|
|
|
DosWrite (stderr, tmp, qse_mbslen(tmp), &written);
|
|
|
|
|
|
|
|
if (desc)
|
|
|
|
{
|
|
|
|
#if defined(QSE_CHAR_IS_MCHAR)
|
2016-04-28 14:33:10 +00:00
|
|
|
qse_mbsxfmt (tmp, QSE_COUNTOF(tmp), QSE_MT("[DESCRIPTION] %hs\r\n"), desc);
|
2016-04-28 05:52:35 +00:00
|
|
|
#else
|
2016-04-28 14:33:10 +00:00
|
|
|
qse_mbsxfmt (tmp, QSE_COUNTOF(tmp), QSE_MT("[DESCRIPTION] %ls\r\n"), desc);
|
2016-04-28 05:52:35 +00:00
|
|
|
#endif
|
|
|
|
DosWrite (stderr, tmp, qse_mbslen(tmp), &written);
|
|
|
|
}
|
2016-04-28 15:29:28 +00:00
|
|
|
DosWrite (stderr, static_footer, qse_mbslen(static_footer), &written);
|
2016-04-28 05:52:35 +00:00
|
|
|
|
2016-04-28 14:33:10 +00:00
|
|
|
#elif defined(__DOS__)
|
|
|
|
int stderr = 2;
|
|
|
|
qse_mchar_t tmp[1024];
|
2016-04-28 15:29:28 +00:00
|
|
|
static qse_mchar_t* static_header = QSE_MT("=[ASSERTION FAILURE]===========================================================\r\n");
|
|
|
|
static qse_mchar_t* static_footer = QSE_MT("===============================================================================\r\n");
|
2016-04-28 14:33:10 +00:00
|
|
|
|
2016-04-28 15:29:28 +00:00
|
|
|
write (stderr, static_header, qse_mbslen(static_header));
|
2016-04-28 14:33:10 +00:00
|
|
|
|
|
|
|
#if defined(QSE_CHAR_IS_MCHAR)
|
|
|
|
qse_mbsxfmt (tmp, QSE_COUNTOF(tmp), QSE_MT("FILE %hs LINE %lu\r\n"), file, (unsigned long)line);
|
|
|
|
#else
|
|
|
|
qse_mbsxfmt (tmp, QSE_COUNTOF(tmp), QSE_MT("FILE %ls LINE %lu\r\n"), file, (unsigned long)line);
|
|
|
|
#endif
|
|
|
|
write (stderr, tmp, qse_mbslen(tmp));
|
|
|
|
|
|
|
|
#if defined(QSE_CHAR_IS_MCHAR)
|
|
|
|
qse_mbsxfmt (tmp, QSE_COUNTOF(tmp), QSE_MT("[EXPRESSION] %hs\r\n"), expr);
|
|
|
|
#else
|
|
|
|
qse_mbsxfmt (tmp, QSE_COUNTOF(tmp), QSE_MT("[EXPRESSION] %ls\r\n"), expr);
|
|
|
|
#endif
|
|
|
|
write (stderr, tmp, qse_mbslen(tmp));
|
|
|
|
|
|
|
|
if (desc)
|
|
|
|
{
|
|
|
|
#if defined(QSE_CHAR_IS_MCHAR)
|
|
|
|
qse_mbsxfmt (tmp, QSE_COUNTOF(tmp), QSE_MT("[DESCRIPTION] %hs\r\n"), desc);
|
|
|
|
#else
|
|
|
|
qse_mbsxfmt (tmp, QSE_COUNTOF(tmp), QSE_MT("[DESCRIPTION] %ls\r\n"), desc);
|
|
|
|
#endif
|
|
|
|
write (stderr, tmp, qse_mbslen(tmp));
|
|
|
|
}
|
|
|
|
|
2016-04-28 15:29:28 +00:00
|
|
|
write (stderr, static_footer, qse_mbslen(static_footer));
|
2016-04-28 14:33:10 +00:00
|
|
|
|
2016-04-28 05:52:35 +00:00
|
|
|
#elif defined(macintosh)
|
2014-04-22 15:30:28 +00:00
|
|
|
/* note 'desc' is not used for macintosh at this moment.
|
|
|
|
* TODO: include 'desc' in the message */
|
|
|
|
Str255 ptitle;
|
|
|
|
Str255 ptext;
|
|
|
|
SInt16 res;
|
|
|
|
|
2016-04-28 05:52:35 +00:00
|
|
|
qse_mchar_t tmp[256];
|
2014-04-22 15:30:28 +00:00
|
|
|
|
|
|
|
#if defined(QSE_CHAR_IS_MCHAR)
|
2016-04-28 05:52:35 +00:00
|
|
|
qse_mbsxfmt (tmp, QSE_COUNTOF(tmp), QSE_MT("ASSERTION FAILURE AT FILE %hs LINE %lu"), file, (unsigned long)line);
|
2014-04-22 15:30:28 +00:00
|
|
|
#else
|
2016-04-28 05:52:35 +00:00
|
|
|
qse_mbsxfmt (tmp, QSE_COUNTOF(tmp), QSE_MT("ASSERTION FAILURE AT FILE %ls LINE %lu"), file, (unsigned long)line);
|
2014-04-22 15:30:28 +00:00
|
|
|
#endif
|
2016-04-28 05:52:35 +00:00
|
|
|
CopyCStringToPascal (tmp, ptitle);
|
2014-04-22 15:30:28 +00:00
|
|
|
|
|
|
|
#if defined(QSE_CHAR_IS_MCHAR)
|
2016-04-28 05:52:35 +00:00
|
|
|
CopyCStringToPascal (expr, ptext);
|
2014-04-22 15:30:28 +00:00
|
|
|
#else
|
2016-04-28 05:52:35 +00:00
|
|
|
qse_mbsxfmt (tmp, QSE_COUNTOF(tmp), QSE_MT("%ls"), expr);
|
|
|
|
CopyCStringToPascal (tmp, ptext);
|
2014-04-22 15:30:28 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
InitCursor ();
|
|
|
|
StandardAlert (kAlertStopAlert, ptitle, ptext, nil, &res);
|
|
|
|
|
2016-04-28 05:52:35 +00:00
|
|
|
/*
|
|
|
|
#elif defined(vms) || defined(__vms)
|
|
|
|
WHAT TO DO????
|
|
|
|
*/
|
2014-04-22 15:30:28 +00:00
|
|
|
|
2014-04-23 04:37:57 +00:00
|
|
|
|
2016-04-28 14:33:10 +00:00
|
|
|
#else
|
2016-04-28 15:29:28 +00:00
|
|
|
static qse_mchar_t* oops_msg[] =
|
2016-04-28 05:52:35 +00:00
|
|
|
{
|
|
|
|
QSE_MT(" __ \n"),
|
|
|
|
QSE_MT(" _____ _____ _____ _____| |\n"),
|
|
|
|
QSE_MT("| | | _ | __| |\n"),
|
|
|
|
QSE_MT("| | | | | __|__ |__|\n"),
|
|
|
|
QSE_MT("|_____|_____|__| |_____|__|\n"),
|
|
|
|
QSE_MT(" \n")
|
|
|
|
};
|
2016-04-28 15:43:33 +00:00
|
|
|
static qse_mchar_t* static_header = QSE_MT("=[ASSERTION FAILURE]============================================================\n");
|
2016-04-28 15:29:28 +00:00
|
|
|
static qse_mchar_t* static_bthdr = QSE_MT("=[BACKTRACES]===================================================================\n");
|
|
|
|
static qse_mchar_t* static_footer = QSE_MT("================================================================================\n");
|
2016-04-28 05:52:35 +00:00
|
|
|
|
|
|
|
qse_mchar_t tmp[1024];
|
|
|
|
qse_size_t i;
|
|
|
|
|
|
|
|
#if defined(HAVE_BACKTRACE)
|
2014-04-22 15:30:28 +00:00
|
|
|
void* btarray[128];
|
2016-04-28 05:52:35 +00:00
|
|
|
qse_size_t btsize;
|
2014-04-22 15:30:28 +00:00
|
|
|
char** btsyms;
|
2016-04-28 05:52:35 +00:00
|
|
|
#endif
|
2014-04-23 04:37:57 +00:00
|
|
|
|
2016-04-28 15:29:28 +00:00
|
|
|
write (2, static_header, qse_mbslen(static_header));
|
|
|
|
|
|
|
|
for (i = 0; i < QSE_COUNTOF(oops_msg); i++)
|
2014-04-23 04:37:57 +00:00
|
|
|
{
|
2016-04-28 15:29:28 +00:00
|
|
|
write (2, oops_msg[i], qse_mbslen(oops_msg[i]));
|
2014-04-23 04:37:57 +00:00
|
|
|
}
|
2011-12-12 14:46:22 +00:00
|
|
|
|
2016-04-28 05:52:35 +00:00
|
|
|
#if defined(QSE_CHAR_IS_MCHAR)
|
|
|
|
qse_mbsxfmt (tmp, QSE_COUNTOF(tmp), QSE_MT("FILE %hs LINE %lu\n"), file, (unsigned long)line);
|
|
|
|
#else
|
|
|
|
qse_mbsxfmt (tmp, QSE_COUNTOF(tmp), QSE_MT("FILE %ls LINE %lu\n"), file, (unsigned long)line);
|
|
|
|
#endif
|
|
|
|
write (2, tmp, qse_mbslen(tmp));
|
2009-06-04 15:50:32 +00:00
|
|
|
|
2016-04-28 05:52:35 +00:00
|
|
|
#if defined(QSE_CHAR_IS_MCHAR)
|
|
|
|
qse_mbsxfmt (tmp, QSE_COUNTOF(tmp), QSE_MT("[EXPRESSION] %hs\n"), expr);
|
|
|
|
#else
|
|
|
|
qse_mbsxfmt (tmp, QSE_COUNTOF(tmp), QSE_MT("[EXPRESSION] %ls\n"), expr);
|
|
|
|
#endif
|
|
|
|
write (2, tmp, qse_mbslen(tmp));
|
2009-06-04 15:50:32 +00:00
|
|
|
|
2016-04-28 05:52:35 +00:00
|
|
|
if (desc)
|
2009-06-04 15:50:32 +00:00
|
|
|
{
|
2016-04-28 05:52:35 +00:00
|
|
|
#if defined(QSE_CHAR_IS_MCHAR)
|
|
|
|
qse_mbsxfmt (tmp, QSE_COUNTOF(tmp), QSE_MT("[DESCRIPTION] %hs\n"), desc);
|
|
|
|
#else
|
|
|
|
qse_mbsxfmt (tmp, QSE_COUNTOF(tmp), QSE_MT("[DESCRIPTION] %ls\n"), desc);
|
|
|
|
#endif
|
|
|
|
write (2, tmp, qse_mbslen(tmp));
|
2009-06-04 15:50:32 +00:00
|
|
|
}
|
2009-06-23 22:53:22 +00:00
|
|
|
|
2016-04-28 05:52:35 +00:00
|
|
|
#if defined(HAVE_BACKTRACE)
|
2009-06-23 22:53:22 +00:00
|
|
|
btsize = backtrace (btarray, QSE_COUNTOF(btarray));
|
|
|
|
btsyms = backtrace_symbols (btarray, btsize);
|
|
|
|
if (btsyms != QSE_NULL)
|
|
|
|
{
|
2016-04-28 05:52:35 +00:00
|
|
|
write (2, static_bthdr, qse_mbslen(static_bthdr));
|
2009-06-23 22:53:22 +00:00
|
|
|
|
|
|
|
for (i = 0; i < btsize; i++)
|
|
|
|
{
|
2016-04-28 05:52:35 +00:00
|
|
|
write (2, btsyms[i], qse_mbslen(btsyms[i]));
|
|
|
|
write (2, QSE_MT("\n"), 1);
|
2009-06-23 22:53:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
free (btsyms);
|
|
|
|
}
|
2016-04-28 05:52:35 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
write (2, static_footer, qse_mbslen(static_footer));
|
2009-06-23 22:53:22 +00:00
|
|
|
#endif
|
|
|
|
|
2009-06-04 15:50:32 +00:00
|
|
|
|
2011-03-15 09:40:35 +00:00
|
|
|
#if defined(_WIN32)
|
2011-05-04 08:00:38 +00:00
|
|
|
ExitProcess (249);
|
2011-03-17 02:37:06 +00:00
|
|
|
#elif defined(__OS2__)
|
2011-05-04 08:00:38 +00:00
|
|
|
DosExit (EXIT_PROCESS, 249);
|
|
|
|
#elif defined(__DOS__)
|
|
|
|
{
|
|
|
|
union REGS regs;
|
|
|
|
regs.h.ah = DOS_EXIT;
|
|
|
|
regs.h.al = 249;
|
|
|
|
intdos (®s, ®s);
|
|
|
|
}
|
2012-04-27 14:33:14 +00:00
|
|
|
#elif defined(vms) || defined(__vms)
|
2012-05-28 07:11:13 +00:00
|
|
|
lib$stop (SS$_ABORT); /* use SS$_OPCCUS instead? */
|
|
|
|
|
|
|
|
/* this won't be reached since lib$stop() terminates the process */
|
2012-04-27 14:33:14 +00:00
|
|
|
sys$exit (SS$_ABORT); /* this condition code can be shown with
|
|
|
|
* 'show symbol $status' from the command-line. */
|
2014-04-22 15:30:28 +00:00
|
|
|
#elif defined(macintosh)
|
|
|
|
ExitToShell ();
|
2009-06-05 07:36:02 +00:00
|
|
|
#else
|
|
|
|
QSE_KILL (QSE_GETPID(), SIGABRT);
|
|
|
|
QSE_EXIT (1);
|
|
|
|
#endif
|
2009-06-04 15:50:32 +00:00
|
|
|
}
|
|
|
|
|