- added [[noreturn]] to several functions that always throw exceptions.
This commit is contained in:
parent
7d81417829
commit
9c75a38ec3
7 changed files with 14 additions and 14 deletions
|
|
@ -63,7 +63,7 @@ void I_DebugPrint(const char *cp)
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
void I_Error(const char *error, ...)
|
||||
[[noreturn]] void I_Error(const char *error, ...)
|
||||
{
|
||||
va_list argptr;
|
||||
char errortext[MAX_ERRORTEXT];
|
||||
|
|
@ -85,7 +85,7 @@ void I_Error(const char *error, ...)
|
|||
//==========================================================================
|
||||
extern FILE *Logfile;
|
||||
|
||||
void I_FatalError(const char *error, ...)
|
||||
[[noreturn]] void I_FatalError(const char *error, ...)
|
||||
{
|
||||
static bool alreadyThrown = false;
|
||||
gameisdead = true;
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ public:
|
|||
};
|
||||
|
||||
void I_ShowFatalError(const char *message);
|
||||
void I_Error (const char *error, ...) GCCPRINTF(1,2);
|
||||
void I_FatalError (const char *error, ...) GCCPRINTF(1,2);
|
||||
[[noreturn]] void I_Error (const char *error, ...) GCCPRINTF(1,2);
|
||||
[[noreturn]] void I_FatalError (const char *error, ...) GCCPRINTF(1,2);
|
||||
|
||||
#endif //__ERRORS_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue