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

Code for aborting when something catastrophic goes wrong.

#include "SageAbort.h"
#include <stdio.h>
#include <windows.h>
Include dependency graph for SageAbort.cpp:

Functions

void reallyAbort (_In_ const char *fmt,...)
 The real abort function.
 
void reallyAbortW (_In_ const wchar_t *fmt,...)
 Wide character version of reallyAbort.
 

Function Documentation

◆ reallyAbort()

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

This is the function that actually really does all of the work of aborting, despite all of the redirections in the code. Normally we will call this function using the ABORT macro. This allows an error message to be displayed in a dialog box (provided things don't go TOO wrong) last thing on exit by calling the ABORT macro anyplace in the code. The parameters to this function are identical to those of the stdio function printf.

Parameters
fmtPrintf style format string.

◆ reallyAbortW()

void reallyAbortW ( _In_ const wchar_t * fmt,
... )
Parameters
fmtPrintf style format string.