Skip to content

Commit

Permalink
Add noreturn for certain ErrH funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
IonAgorria committed Jan 5, 2024
1 parent 534a737 commit d1bbd7e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/XTool/xerrhand.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ struct XErrorHandler
void SetRestore(void (*rf)());
void SetCrash(void (*cf)());
void SetState(int s){state=s;}
void Abort(const char* message, int code = XERR_USER, int addval = -1, const char* subj = NULL);
void Abort(const std::string& message, int code = XERR_USER, int addval = -1, const char* subj = NULL);
[[noreturn]] void Abort(const char* message, int code = XERR_USER, int addval = -1, const char* subj = NULL);
[[noreturn]] void Abort(const std::string& message, int code = XERR_USER, int addval = -1, const char* subj = NULL);
bool ShowErrorMessage(const char* message);
void Exit();
void RTC(const char *file,unsigned int line, const char *expr);
[[noreturn]] void Exit();
[[noreturn]] void RTC(const char *file,unsigned int line, const char *expr);
};

std::string decodeStackAddress(const void* addr);
Expand Down

0 comments on commit d1bbd7e

Please sign in to comment.