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

Code for aborting when something catastrophic goes wrong. More...

#include "abort.h"
#include <stdio.h>
#include <windows.h>

Functions

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

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.