VSF Documented
assert.h
Go to the documentation of this file.
1// for VSF_ASSERT
3
4#ifdef __cplusplus
5extern "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// Win SDK xkercheck.h will not be happy if static_assert is a MACRO in c++
17#if !defined(__WIN__) || !defined(__cplusplus)
18# define _Static_assert(__expr, ...) VSF_STATIC_ASSERT(__expr)
19# define static_assert _Static_assert
20#endif
21
22#ifdef __cplusplus
23}
24#endif