2
3
4
5
6
7#ifndef GIMBAL_TYPEDEFS_H
8#define GIMBAL_TYPEDEFS_H
15#define GBL_INDEX_INVALID SIZE_MAX
16#define GBL_NPOS ((size_t )-1
)
22typedef uint8_t GblUint8;
23typedef int8_t GblInt8;
24typedef uint16_t GblUint16;
25typedef int16_t GblInt16;
26typedef uint32_t GblUint32;
27typedef int32_t GblInt32;
28typedef uint64_t GblUint64;
29typedef int64_t GblInt64;
31typedef float GblFloat;
32typedef double GblDouble;
33typedef void* GblPointer;
34typedef void (*GblFunction)();
35typedef const char* GblString;
uint32_t GblHash
Type representing a calculated numeric hash across the codebase.
uint32_t GblEnum
Standard-sized enum type, 32-bits across platforms.
uint32_t GblFlags
Standard-sized flags type, 32-bits across platforms.
void(* GblFnPtr)()
Type used for holding an untyped function pointer.
uint8_t GblBool
Basic boolean type, standardized to sizeof(char)
uint16_t GblRefCount
Type able to hold a reference counter across the codebase.
Union for SAFELY holding untyped data or function pointers.
GblFnPtr pFunc
Function pointer.
void * pData
Data pointer.