|
@@ -127,9 +127,12 @@ void jlib_decl setTerminateOnSEHInSystemDLLs(bool set=true);
|
|
|
void jlib_decl setTerminateOnSEH(bool set=true);
|
|
|
|
|
|
|
|
|
+__declspec(noreturn) void jlib_decl throwUnexpectedException(const char * file, unsigned line) __attribute__((noreturn));
|
|
|
+__declspec(noreturn) void jlib_decl throwUnexpectedException(const char * where, const char * file, unsigned line) __attribute__((noreturn));
|
|
|
+
|
|
|
#define makeUnexpectedException() makeStringExceptionV(9999, "Internal Error at %s(%d)", __FILE__, __LINE__)
|
|
|
-#define throwUnexpected() throw makeStringExceptionV(9999, "Internal Error at %s(%d)", __FILE__, __LINE__)
|
|
|
-#define throwUnexpectedX(x) throw makeStringExceptionV(9999, "Internal Error '" x "' at %s(%d)", __FILE__, __LINE__)
|
|
|
+#define throwUnexpected() throwUnexpectedException(__FILE__, __LINE__)
|
|
|
+#define throwUnexpectedX(x) throwUnexpectedException(x, __FILE__, __LINE__)
|
|
|
#define assertThrow(x) assertex(x)
|
|
|
|
|
|
#define UNIMPLEMENTED throw makeStringExceptionV(-1, "UNIMPLEMENTED feature at %s(%d)", __FILE__, __LINE__)
|