 |
DAW JSON Link
|
Go to the documentation of this file.
11 #if defined( __GNUC__ ) or defined( __clang__ )
12 #define DAW_JSON_LIKELY( Bool ) ( __builtin_expect( !!( Bool ), 1 ) )
13 #define DAW_JSON_UNLIKELY( Bool ) ( __builtin_expect( !!( Bool ), 0 ) )
14 #define DAW_JSON_NOINLINE [[gnu::noinline]]
16 #elif defined( _MSC_VER )
17 #define DAW_JSON_LIKELY( Bool ) !!( Bool )
18 #define DAW_JSON_UNLIKELY( Bool ) !!( Bool )
19 #define DAW_JSON_NOINLINE __declspec( noinline )
21 #define DAW_JSON_LIKELY( Bool ) !!( Bool )
22 #define DAW_JSON_UNLIKELY( Bool ) !!( Bool )
23 #define DAW_JSON_NOINLINE [[gnu::noinline]]
26 #if not defined( DAW_NO_FLATTEN ) and not defined( _MSC_VER )
27 #define DAW_ONLY_FLATTEN [[gnu::flatten]]
28 #define DAW_ONLY_INLINE [[gnu::always_inline]]
30 #define DAW_ONLY_FLATTEN
31 #define DAW_ONLY_INLINE