Debug
DEBUG_INIT
void DEBUG_INIT()

Initialize Debug module.

Notes
DEBUG_BREAK
void DEBUG_BREAK()

Force a break point.

Notes
DEBUG_ASSERT
void DEBUG_ASSERT(
bool a
)

Conditional break.

Parameters
a
bool

Instructions to evaluate. A 'false' result will trigger a break.

Notes
DEBUG_LOG
void DEBUG_LOG(
const c8* msg
)

Display debug message (and return to next line).

Parameters
msg
const c8*

Nul-terminated string with message to display

DEBUG_LOGNUM
void DEBUG_LOGNUM(
const c8* msg,
u8 num
)

Display debug message and a 8-bits value (and return to next line).

Parameters
msg
const c8*

Nul-terminated string with numer name

num
u8

8-bit number value

DEBUG_PRINT
void DEBUG_PRINT(
const c8* format,
...
)

Display debug formatted message.  No new line is added at the end of the message.

Parameters
format
const c8*

Nul-terminated string with format specifiers

Notes
Profile
PROFILE_FRAME_START
inline void PROFILE_FRAME_START()

Signal the start of a frame to be measured.

PROFILE_FRAME_END
inline void PROFILE_FRAME_END()

Signal the end of a frame to be measured.

PROFILE_SECTION_START
inline void PROFILE_SECTION_START(
u8 level,
u8 section,
const c8* msg
)

Signal the start of a section to be measured.

Parameters
level
u8

Minimal level to display the section

section
u8

Section identifier

msg
const c8*

Nul-terminated string with section name

PROFILE_SECTION_END
inline void PROFILE_SECTION_END(
u8 level,
u8 section,
const c8* msg
)

Signal the end of a section to be measured.

Parameters
level
u8

Minimal level to display the section

section
u8

Section identifier

msg
const c8*

Nul-terminated string with section name