Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

debug.h File Reference

Defines

Functions


Define Documentation

#define ASSERT Assertion,
pMessage   ) 
 

Value:

DEBUG_Assert((Assertion),  \
                           (pMessage),                \
                           #Assertion,                \
                           __FILE__,                  \
                           __LINE__)
Check an assertion statement.

Parameters:
Assertion The condition that you expect to hold true
pMessage The message which is being display if the condition is not true
An assertion statement specifies a condition that you expect to hold true at some particular point in your program.

If that condition does not hold true, the assertion fails, execution of your program is interrupted, and the "Assertion Failed" screen appears!

#define DEBUG_ENABLE_ASSERTIONS
 

Comment this out to disable assertsion checking.

#define DEBUG_GET_1ST_U16_FROM_U32  )     ((u16)((n>>16)&0xffff))
 

Returns the first u16, seen from the left, of an u32.
For example: 0x12345678 would return 0x1234.

#define DEBUG_GET_1ST_U8_FROM_U16  )     ((u8)((n>>8)&0xff))
 

Returns the first u8, seen from the left, of an u16.
For example: 0x1234 would return 0x12.

#define DEBUG_GET_1ST_U8_FROM_U32  )     ((u8)((n>>24)&0xff))
 

Returns the first u8, seen from the left, of an u32.
For example: 0x12345678 would return 0x12.

#define DEBUG_GET_2ND_U16_FROM_U32  )     ((u16)((n)&0x0000ffff))
 

Returns the second u16, seen from the left, of an u32.
For example: 0x12345678 would return 0x5678.

#define DEBUG_GET_2ND_U8_FROM_U16  )     ((u8)((n)&0x00ff))
 

Returns the second u8, seen from the left, of an u16.
For example: 0x1234 would return 0x34.

#define DEBUG_GET_2ND_U8_FROM_U32  )     ((u8)((n>>16)&0x00ff))
 

Returns the second u8, seen from the left, of an u32.
For example: 0x12345678 would return 0x34.

#define DEBUG_GET_3RD_U8_FROM_U32  )     ((u8)((n>>8)&0x0000ff))
 

Returns the third u8, seen from the left, of an u32.
For example: 0x12345678 would return 0x56.

#define DEBUG_GET_4TH_U8_FROM_U32  )     ((u8)((n)&0x000000ff))
 

Returns the fourth u8, seen from the left, of an u32.
For example: 0x12345678 would return 0x78.

#define DEBUG_TEXT_CHAR_HEIGHT   (16)
 

Height of debug font.

#define DEBUG_TEXT_CHAR_SIZE   (DEBUG_TEXT_CHAR_WIDTH*DEBUG_TEXT_CHAR_HEIGHT)
 

Size of one debugfont character in bytes. (height*width).

#define DEBUG_TEXT_CHAR_WIDTH   (16)
 

Width of debug font.


Generated on Sun Jul 6 20:03:37 2003 for Open GC Library by doxygen1.3