Zephyr Project API
4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
check.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2019 Intel Corporation
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
12
13
#ifndef ZEPHYR_INCLUDE_SYS_CHECK_H_
14
#define ZEPHYR_INCLUDE_SYS_CHECK_H_
15
16
#include <
zephyr/sys/__assert.h
>
17
25
46
#if defined(CONFIG_ASSERT_ON_ERRORS)
47
#define CHECKIF(expr) \
48
__ASSERT_NO_MSG(!(expr)); \
49
if (0)
50
#elif defined(CONFIG_NO_RUNTIME_CHECKS)
51
#define CHECKIF(...) \
52
if (0)
53
#else
54
#define CHECKIF(expr) \
55
if (expr)
56
#endif
57
59
60
#endif
/* ZEPHYR_INCLUDE_SYS_CHECK_H_ */
__assert.h
include
zephyr
sys
check.h
Generated on
for Zephyr Project API by
1.16.1