The Nebula Device 3: C:/nebula3/code/foundation/core/debug.h File Reference

The Nebula Device 3

C:/nebula3/code/foundation/core/debug.h File Reference


Detailed Description

Nebula debug macros.

n_assert() - the vanilla assert() Macro n_verify() - like assert() except that the statement in parens is simply evaluated, unchecked, if __NEBULA_NO_ASSERT is set n_assert2() - an assert() plus a message from the programmer

Functions

void __cdecl void
__cdecl void __cdecl
void __cdecl void 
n_sleep (double)
void n_barf (const char *, const char *, int) __attribute__((noreturn))
void n_barf2 (const char *, const char *, const char *, int) __attribute__((noreturn))

Function Documentation

void __cdecl void __cdecl void __cdecl void __cdecl void n_sleep ( double  sec  ) 

Put process to sleep.

  • 21-Dec-98 floh created

void n_barf ( const char *  exp,
const char *  file,
int  line 
)

This function is called by n_assert() when the assertion fails.

void n_barf2 ( const char *  exp,
const char *  msg,
const char *  file,
int  line 
)

This function is called by n_assert2() when the assertion fails.