VSF Documented
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
source
shell
sys
linux
include
simple_libc
assert
assert.h
Go to the documentation of this file.
1
// for VSF_ASSERT and compiler info
2
#include "
utilities/compiler/compiler.h
"
3
4
#ifdef __cplusplus
5
extern
"C"
{
6
#endif
7
8
#undef assert
9
10
#ifdef NDEBUG
11
# define assert(...) ((void)0)
12
#else
13
# define assert VSF_ASSERT
14
#endif
15
16
#if !defined(__cplusplus)
17
// _Static_assert is keyword, not MACRO
18
//# define _Static_assert(__expr, ...) VSF_STATIC_ASSERT(__expr)
19
# define static_assert _Static_assert
20
#endif
21
22
#ifdef __cplusplus
23
}
24
#endif
compiler.h
Generated from commit:
vsfteam/vsf@2b286be