|
MentOS
0.8.0
The Mentoring Operating System
|
Defines the function and pre-processor macro for assertions. More...
Go to the source code of this file.
Macros | |
| #define | __FILENAME__ (__builtin_strrchr(__FILE__, '/') ? __builtin_strrchr(__FILE__, '/') + 1 : __FILE__) |
| Extract the filename from the full path provided by FILE. | |
| #define | assert(expression) ((expression) ? (void)0 : __assert_fail(#expression, __FILENAME__, __func__, __LINE__)) |
| Assert function. | |
Functions | |
| 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. More... | |
Defines the function and pre-processor macro for assertions.
| 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.
| assertion | The failed assertion. |
| file | The file where the assertion is located. |
| function | The function where the assertion is. |
| line | The line inside the file. |