Zephyr API Documentation
3.5.0
A Scalable Open Source RTOS
3.5.0
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
assert.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2016 Intel Corporation
3
* Copyright (c) 2016, Freescale Semiconductor, Inc.
4
*
5
* SPDX-License-Identifier: Apache-2.0
6
*/
7
8
#ifndef ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_ASSERT_H_
9
#define ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_ASSERT_H_
10
11
#include <
zephyr/sys/__assert.h
>
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#else
16
#if __STDC_VERSION__ >= 201112L
17
#define static_assert _Static_assert
18
#endif
/* __STDC_VERSION__ */
19
#endif
/* __cplusplus */
20
21
#ifndef NDEBUG
22
#ifndef assert
23
#define assert(test) __ASSERT_NO_MSG(test)
24
#endif
25
#else
26
#ifndef assert
27
#define assert(test) ((void)0)
28
#endif
29
#endif
30
31
#ifdef __cplusplus
32
}
33
#endif
34
35
#endif
/* ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_ASSERT_H_ */
__assert.h
lib
libc
minimal
include
assert.h
Generated on Fri Oct 20 2023 10:27:12 for Zephyr API Documentation by
1.9.6