vitasdk
Documentation of the vitasdk
build_utils.h
Go to the documentation of this file.
1 #ifndef _VITASDK_BUILD_UTILS_H_
2 #define _VITASDK_BUILD_UTILS_H_
3 
4 #ifndef VITASDK_BUILD_ASSERT
5 #define VITASDK_BUILD_ASSERT(condition) ((void)sizeof(char[1 - (2*!(condition))]))
6 #endif
7 
8 #ifdef ENABLE_VITASDK_BUILD_ASSERT
9 #define VITASDK_BUILD_ASSERT_EX(__name__, __cond__) inline void __vitasdk_check_ex_ ## __name__ (void){VITASDK_BUILD_ASSERT((__cond__));}
10 #define VITASDK_BUILD_ASSERT_EQ(__size__, __name__) inline void __vitasdk_check_eq_ ## __name__ (void){VITASDK_BUILD_ASSERT(((__size__) == sizeof(__name__)));}
11 #else
12 #define VITASDK_BUILD_ASSERT_EX(__name__, __cond__)
13 #define VITASDK_BUILD_ASSERT_EQ(__size__, __name__)
14 #endif
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 
21 
22 #ifdef __cplusplus
23 }
24 #endif
25 
26 #endif /* _VITASDK_BUILD_UTILS_H_ */