Introduction
Downloads
Documentation
Tutorials
Pixie Lite
Forum

Home

Debug.h File Reference

Useful debug functions. More...

Go to the source code of this file.


Defines

#define Assert(expression, message)
#define FatalError(message)
#define DebugPrint(x)

Detailed Description

Useful debug functions.

Author:
Mattias Gustavsson
This file contains a few macros that are handy to make your code more easy to debug, like Assert and DebugPrint. They are really just wrappers to make it easier to have the functions compile out on certain configurations, and the actual implementation of their functionality is implemented elsewhere, specific for the current platform.

Definition in file Debug.h.


Define Documentation

#define Assert ( expression,
message   ) 

Assert

Definition at line 41 of file Debug.h.

#define FatalError ( message   ) 

Value:

if (Platform::GetPlatform_OS())                                      \
      {                                                        \
      Platform::GetPlatform_OS()->ReportFatalError(message, __FILE__, __LINE__); \
      }                                                        \
Fatal Error

Definition at line 49 of file Debug.h.

#define DebugPrint (  ) 

Debug Print

Definition at line 69 of file Debug.h.



Pixie University and the Pixie Game Engine is created and managed by Mattias Gustavsson.
Reproduction/republishing of any material on this site without permission is strictly prohibited.