MentOS
0.8.0
The Mentoring Operating System
libc
inc
assert.h
Go to the documentation of this file.
1
6
#pragma once
7
13
void
__assert_fail
(
const
char
*assertion,
const
char
*file,
const
char
*
function
,
unsigned
int
line);
14
16
#define __FILENAME__ (__builtin_strrchr(__FILE__, '/') ? __builtin_strrchr(__FILE__, '/') + 1 : __FILE__)
17
19
#define assert(expression) ((expression) ? (void)0 : __assert_fail(#expression, __FILENAME__, __func__, __LINE__))
__assert_fail
void __assert_fail(const char *assertion, const char *file, const char *function, unsigned int line)
Function used to log the information of a failed assertion.
Definition:
assert.c:10
Generated by
1.9.1