rename error strings to RELCS

This commit is contained in:
withmorten 2021-02-18 23:01:46 +01:00
parent 8dabde94bf
commit 82322293fe

View file

@ -1112,7 +1112,7 @@ void re3_assert(const char *expr, const char *filename, unsigned int lineno, con
strcat_s(re3_buff, re3_buffsize, "(Press Retry to debug the application)"); strcat_s(re3_buff, re3_buffsize, "(Press Retry to debug the application)");
nCode = ::MessageBoxA(nil, re3_buff, "RE3 Assertion Failed!", nCode = ::MessageBoxA(nil, re3_buff, "RELCS Assertion Failed!",
MB_ABORTRETRYIGNORE|MB_ICONHAND|MB_SETFOREGROUND|MB_TASKMODAL); MB_ABORTRETRYIGNORE|MB_ICONHAND|MB_SETFOREGROUND|MB_TASKMODAL);
if (nCode == IDABORT) if (nCode == IDABORT)
@ -1133,7 +1133,7 @@ void re3_assert(const char *expr, const char *filename, unsigned int lineno, con
abort(); abort();
#else #else
// TODO // TODO
printf("\nRE3 ASSERT FAILED\n\tFile: %s\n\tLine: %d\n\tFunction: %s\n\tExpression: %s\n",filename,lineno,func,expr); printf("\nRELCS ASSERT FAILED\n\tFile: %s\n\tLine: %d\n\tFunction: %s\n\tExpression: %s\n",filename,lineno,func,expr);
assert(false); assert(false);
#endif #endif
} }
@ -1185,14 +1185,14 @@ void re3_usererror(const char *format, ...)
vsprintf_s(re3_buff, re3_buffsize, format, va); vsprintf_s(re3_buff, re3_buffsize, format, va);
va_end(va); va_end(va);
::MessageBoxA(nil, re3_buff, "RE3 Error!", ::MessageBoxA(nil, re3_buff, "RELCS Error!",
MB_OK|MB_ICONHAND|MB_SETFOREGROUND|MB_TASKMODAL); MB_OK|MB_ICONHAND|MB_SETFOREGROUND|MB_TASKMODAL);
raise(SIGABRT); raise(SIGABRT);
_exit(3); _exit(3);
#else #else
vsprintf(re3_buff, format, va); vsprintf(re3_buff, format, va);
printf("\nRE3 Error!\n\t%s\n",re3_buff); printf("\nRELCS Error!\n\t%s\n",re3_buff);
assert(false); assert(false);
#endif #endif
} }