12 #include <PlatformTypes.h>
13 #ifndef FW_BASIC_TYPES_H
14 #define FW_BASIC_TYPES_H
17 #if defined(__GNUC__) || defined(__llvm__) || defined(PLATFORM_OVERRIDE_GCC_CLANG_CHECK)
19 #error Unsupported compiler!
58 #define FW_NO_ASSERT 1
59 #define FW_FILEID_ASSERT \
61 #define FW_FILENAME_ASSERT 3
62 #define FW_RELATIVE_PATH_ASSERT \
66 #define FW_NUM_ARRAY_ELEMENTS(a) (sizeof(a) / sizeof((a)[0]))
67 #define FW_MAX(a, b) (((a) > (b)) ? (a) : (b))
68 #define FW_MIN(a, b) (((a) < (b)) ? (a) : (b))
75 #define PROTECTED protected
79 #define PRIVATE private
PlatformPointerCastType POINTER_CAST
int8_t I8
8-bit signed integer
PlatformIntType NATIVE_INT_TYPE
float F32
32-bit floating point
uint8_t U8
8-bit unsigned integer
PlatformUIntType NATIVE_UINT_TYPE
uint8_t PlatformPointerCastType
unsigned int PlatformUIntType
int PlatformIntType
DefaultTypes.hpp provides fallback defaults for the platform types.