distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
assert.h
Go to the documentation of this file.
1 
12 #ifndef INCLUDE_DISTORTOS_ASSERT_H_
13 #define INCLUDE_DISTORTOS_ASSERT_H_
14 
15 #include <assert.h>
16 
17 #ifdef NDEBUG
18 
19 #undef assert
20 
26 #define assert(expression) (void)sizeof(expression)
27 
28 #endif /* def NDEBUG */
29 
30 #endif /* INCLUDE_DISTORTOS_ASSERT_H_ */
assert() macro