KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
assert.h File Reference

Standard C Assertions. More...

#include <kos/cdefs.h>

Go to the source code of this file.

Macros

#define assert(e)   ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e, NULL, __ASSERT_FUNC))
 Standard C assertion macro.
 
#define assert_msg(e, m)   ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e, m, __ASSERT_FUNC))
 assert() with a custom message.
 

Typedefs

typedef void(* assert_handler_t) (const char *file, int line, const char *expr, const char *msg, const char *func)
 Assertion handler type.
 

Functions

assert_handler_t assert_set_handler (assert_handler_t hnd)
 Set an assertion handler to call on a failed assertion.
 

Detailed Description

Standard C Assertions.

This file contains the standard C assertions to raise an assertion or to change the assertion handler.

Author
Megan Potter