The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
assert.h File Reference

assert(): with NDEBUG defined it checks nothing. More...

Go to the source code of this file.

Macros

#define assert(expression)

Functions

void __assert_fail (const char *expression, const char *file, int line, const char *function) __attribute__((noreturn))

Detailed Description

assert(): with NDEBUG defined it checks nothing.

Macro Definition Documentation

◆ assert

#define assert ( expression)
Value:
((expression) ? (void)0 : __assert_fail(#expression, __FILE__, __LINE__, __func__))
void __assert_fail(const char *expression, const char *file, int line, const char *function) __attribute__((noreturn))

Function Documentation

◆ __assert_fail()

void __assert_fail ( const char * expression,
const char * file,
int line,
const char * function )