Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

GTFO Class Reference

"Go To Failure Output" :-) Exit application due to fatal error. More...

#include <FlyLegacy.h>

List of all members.

Public Member Functions

 GTFO (const char *file=NULL, int line=0)
void operator() (const char *fmt=NULL,...)

Private Attributes

char m_file [1024]
int m_line


Detailed Description

Exit the application ("Go To Failure Output"...definitely not "Get the &#^$ out" as some people might have you believe :-) This simple class definition allows varargs to be used to generate the failure message. The macro below will automatically fill in the source code filename and line number

Thanks to Paul Mclachlan's article at: http://www.codeproject.com/debug/location_trace.asp

Definition at line 1746 of file FlyLegacy.h.


Constructor & Destructor Documentation

GTFO::GTFO const char *  file = NULL,
int  line = 0
[inline]
 

Definition at line 1752 of file FlyLegacy.h.

References m_file.


Member Function Documentation

void GTFO::operator() const char *  fmt = NULL,
  ...
 

Todo:
Make agnostic to path separator

Definition at line 1381 of file Main.cpp.

References m_file, m_line, and CLogFile::Write().


Member Data Documentation

char GTFO::m_file[1024] [private]
 

Definition at line 1748 of file FlyLegacy.h.

Referenced by GTFO(), and operator()().

int GTFO::m_line [private]
 

Definition at line 1749 of file FlyLegacy.h.

Referenced by operator()().


The documentation for this class was generated from the following files:
SourceForge.net Logo Documentation generated by doxygen