The LARC Game Engine
A Simple Game Engine from the Laboratory for Recreational Computing
Macros | Functions
Abort.h File Reference

Header and define for the ABORT macro. More...

Macros

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

Functions

void reallyAbort (const char *fmt,...)
 The function that really does the aborting. More...
 
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.