SAGE
A Simple Academic Game Engine
Loading...
Searching...
No Matches
SageAbort.h File Reference

Header and define for the ABORT macro.

This graph shows which files directly or indirectly include this file:

Macros

#define ABORT   (reallyAbort)
 The ABORT macro.
 
#define ABORTW   (reallyAbortW)
 Wide character version of the ABORT macro.
 

Functions

void reallyAbort (const char *fmt,...)
 The function that really does the aborting.
 
void reallyAbortW (const wchar_t *fmt,...)
 Wide character version of function reallyAbort.
 

Macro Definition Documentation

◆ ABORT

#define ABORT   (reallyAbort)

This nasty looking macro uses a handy little trick to allow it to appear to take a variable number of arguments. This is what you should actually call to abort.

Function Documentation

◆ reallyAbort()

void reallyAbort ( const char * fmt,
... )

Terminate the program with a printf-like formatted error message. Normally we will call this function using the ABORT macro.

Parameters
fmtFormat string.

◆ reallyAbortW()

void reallyAbortW ( const wchar_t * fmt,
... )

Terminate the program with a printf-like formatted error message. Normally we will call this function using the ABORT macro.

Parameters
fmtWide format string.