|
Nebula
|
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"Go to the source code of this file.
Macros | |
| #define | n_message n_confirm |
| #define | n_assert(exp) |
| #define | n_assert2(exp, msg) |
| #define | n_assert_msg(exp, msg) |
| #define | n_assert_fmt(exp, msg, ...) |
| #define | n_warn(exp) |
| #define | n_warn2(exp, msg) |
| #define | n_warn_fmt(exp, msg, ...) |
| #define | n_crash(msg) |
| #define | n_static_assert(exp) |
Functions | |
| void | n_printf (const char *,...) __attribute__((format(printf |
| void void | n_error (const char *,...) __attribute__((format(printf |
| void void void | n_dbgout (const char *,...) __attribute__((format(printf |
| void void void void | n_warning (const char *,...) __attribute__((format(printf |
| void void void void void | n_confirm (const char *,...) __attribute__((format(printf |
| void void void void void void | n_sleep (double) |
| Put process to sleep. | |
| void | n_barf (const char *, const char *, int) |
| This function is called by n_assert() when the assertion fails. | |
| void | n_barf2 (const char *, const char *, const char *, int) |
| This function is called by n_assert2() when the assertion fails. | |
| void | n_barf_fmt (const char *, const char *, const char *, int,...) |
| void | n_cough (const char *, const char *, int) |
| This function is called by n_assert() when the assertion fails. | |
| void | n_cough2 (const char *, const char *, const char *, int) |
| This function is called by n_assert2() when the assertion fails. | |
| void | n_cough_fmt (const char *, const char *, const char *, int,...) |
| void | n_break () |
| #define n_assert | ( | exp | ) |
| #define n_assert2 | ( | exp, | |
| msg ) |
| #define n_assert_fmt | ( | exp, | |
| msg, | |||
| ... ) |
| #define n_assert_msg | ( | exp, | |
| msg ) |
| #define n_crash | ( | msg | ) |
| #define n_message n_confirm |
| #define n_static_assert | ( | exp | ) |
| #define n_warn | ( | exp | ) |
| #define n_warn2 | ( | exp, | |
| msg ) |
| #define n_warn_fmt | ( | exp, | |
| msg, | |||
| ... ) |
| 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_break | ( | ) |
| void void void void void n_confirm | ( | const char * | , |
| ... ) |
| 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 void void n_dbgout | ( | const char * | , |
| ... ) |
| void void n_error | ( | const char * | , |
| ... ) |
| void n_printf | ( | const char * | , |
| ... ) |
| void void void void void void n_sleep | ( | double | sec | ) |
Put process to sleep.
| void void void void n_warning | ( | const char * | , |
| ... ) |