Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
assert.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define assert(x)   ((void)((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__), 0)))
 

Functions

 __attribute__ ((noreturn, weak)) void __assert_fail(const char *expr
 

Variables

const char * file
 
const char unsigned int line
 
const char unsigned int const char * function
 

Macro Definition Documentation

◆ assert

#define assert (   x)    ((void)((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__), 0)))

Definition at line 11 of file assert.h.

Function Documentation

◆ __attribute__()

__attribute__ ( (noreturn, weak)  ) const

Referenced by memchr().

Variable Documentation

◆ file

const char* file

Definition at line 18 of file assert.h.

Referenced by __attribute__().

◆ function

const char unsigned int const char* function

Definition at line 18 of file assert.h.

◆ line

const char unsigned int line

Definition at line 18 of file assert.h.

Referenced by __attribute__().