FUtils/FUAssert.h File Reference

This file contains a simple debugging assertion mechanism. More...

Go to the source code of this file.

Defines

#define __DEBUGGER_BREAK
 Breaks into the debugger.
#define FUFail(command)   { __DEBUGGER_BREAK; command; }
 Forces the debugger to break, or take the fall-back.
#define FUAssert(condition, fall_back)   { if (!(condition)) { __DEBUGGER_BREAK; fall_back; } }
 Asserts that a condition is met.
#define FUCheckMemory(fallback)
 Asserts that the memory is intact.


Detailed Description

This file contains a simple debugging assertion mechanism.


Define Documentation

#define __DEBUGGER_BREAK
 

Breaks into the debugger.

In debug builds, this intentionally crashes the application. In release builds, this is an empty function.

#define FUAssert condition,
fall_back   )     { if (!(condition)) { __DEBUGGER_BREAK; fall_back; } }
 

Asserts that a condition is met.

Use this macro, instead of 'if' statements when you are asserting for a programmer's error.

Parameters:
condition The condition to assert.
fall_back The command to execute if the condition is not met.

#define FUCheckMemory fallback   ) 
 

Asserts that the memory is intact.

This function is only supported on Windows, debug builds right now: it uses the _CrtCheckMemory function and is very expensive.

#define FUFail command   )     { __DEBUGGER_BREAK; command; }
 

Forces the debugger to break, or take the fall-back.

Parameters:
command The fall_back command to execute.


Generated on Fri May 12 16:44:40 2006 for FCollada by  doxygen 1.4.6-NO