Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
Main Page
Related Pages
+
Classes
Class List
Class Index
+
Class Members
+
All
_
c
d
e
f
g
i
k
l
m
n
p
q
r
s
t
w
x
+
Variables
_
c
d
e
f
g
i
k
l
m
n
p
q
r
s
t
w
x
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
p
q
r
s
t
u
v
w
+
Variables
_
b
c
d
e
f
h
i
l
n
p
t
v
w
+
Typedefs
_
a
b
c
d
f
i
j
n
s
t
u
v
w
Enumerator
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerator
Macros
Pages
assert.h
Go to the documentation of this file.
1
#ifndef ASSERT_H_
2
#define ASSERT_H_
3
4
#ifdef __cplusplus
5
extern
"C"
{
6
#endif
7
8
#ifdef NDEBUG
9
#define assert(x) (void)0
10
#else
11
#define assert(x) ((void)((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__), 0)))
12
#endif
13
14
#if __STDC_VERSION__ >= 201112L && !defined(__cplusplus)
15
#define static_assert _Static_assert
16
#endif
17
18
__attribute__
((noreturn, weak))
void
__assert_fail(
const
char
* expr,
const
char
*
file
,
19
unsigned
int
line
,
const
char
*
function
);
20
21
#ifdef __cplusplus
22
}
23
#endif
24
25
#endif // ASSERT_H_
__attribute__
__attribute__((noreturn, weak)) void __assert_fail(const char *expr
file
const char * file
Definition:
assert.h:18
line
const char unsigned int line
Definition:
assert.h:18
include
assert.h
Generated by
1.8.15