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

#include "core/config.h"


Functions

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

Function Documentation

void void void void void 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.