Nebula
Loading...
Searching...
No Matches
debug.cc File Reference
#include "core/sysfunc.h"
#include "io/console.h"
#include "util/string.h"
#include "debugbreak.h"

Functions

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.
 
void n_barf_fmt (const char *exp, const char *fmt, const char *file, int line,...)
 
void n_cough (const char *exp, const char *file, int line)
 This function is called by n_assert() when the assertion fails.
 
void n_cough2 (const char *exp, const char *msg, const char *file, int line)
 This function is called by n_assert2() when the assertion fails.
 
void n_cough_fmt (const char *exp, const char *fmt, const char *file, int line,...)
 
void __cdecl n_error (const char *msg,...)
 This function is called when a serious situation is encountered which requires abortion of the application.
 
void __cdecl n_warning (const char *msg,...)
 This function is called when a warning should be issued which doesn't require abortion of the application.
 
void __cdecl n_confirm (const char *msg,...)
 This function is called when a message should be displayed to the user which requires a confirmation (usually displayed as a MessageBox).
 
void __cdecl n_printf (const char *msg,...)
 Nebula's printf replacement.
 
void __cdecl n_dbgout (const char *msg,...)
 Put the message to the debug window.
 
void n_sleep (double sec)
 Put process to sleep.
 
void n_break ()
 

Function Documentation

◆ n_barf()

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

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

◆ n_barf2()

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.

◆ n_barf_fmt()

void n_barf_fmt ( const char * exp,
const char * fmt,
const char * file,
int line,
... )

◆ n_break()

void n_break ( )

◆ n_confirm()

void __cdecl n_confirm ( const char * msg,
... )

This function is called when a message should be displayed to the user which requires a confirmation (usually displayed as a MessageBox).

◆ n_cough()

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

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

◆ n_cough2()

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

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

◆ n_cough_fmt()

void n_cough_fmt ( const char * exp,
const char * fmt,
const char * file,
int line,
... )

◆ n_dbgout()

void __cdecl n_dbgout ( const char * msg,
... )

Put the message to the debug window.

  • 26-Mar-05 kims created

◆ n_error()

void __cdecl n_error ( const char * msg,
... )

This function is called when a serious situation is encountered which requires abortion of the application.

◆ n_printf()

void __cdecl n_printf ( const char * msg,
... )

Nebula's printf replacement.

Will redirect the text to the console and/or logfile.

  • 27-Nov-98 floh created

◆ n_sleep()

void n_sleep ( double sec)

Put process to sleep.

  • 21-Dec-98 floh created

◆ n_warning()

void __cdecl n_warning ( const char * msg,
... )

This function is called when a warning should be issued which doesn't require abortion of the application.