Go to the documentation of this file.
12 #define IS_NULLPTR( x ) (x == nullptr)
14 #define RETURN_IF_NULLPTR( x, ... ) { if(IS_NULLPTR(x)) return __VA_ARGS__; }
15 #define RETURN_IF_NOT_NULLPTR( x, ... ) { if(!IS_NULLPTR(x)) return __VA_ARGS__; }
29 #define THROW_IF( condition, exception ) ( condition ? throw exception : false)
30 #define THROW_IF_NOT( condition, exception ) ( THROW_IF(!condition, exception) )
32 #define SDLU_BEGIN namespace sdlu {
int8_t Int8
Definition: Util.hpp:18
int32_t Int32
Definition: Util.hpp:24
uint8_t Uint8
Definition: Util.hpp:17
int64_t Int64
Definition: Util.hpp:27
uint16_t Uint16
Definition: Util.hpp:20
int16_t Int16
Definition: Util.hpp:21
uint64_t Uint64
Definition: Util.hpp:26
uint32_t Uint32
Definition: Util.hpp:23