4#include "../Foundation/PrimitiveTypes.h"
#define SC_COMPILER_EXPORT
Macro for symbol visibility in non-MSVC compilers.
Definition: Compiler.h:78
Settings to initialize Globals.
Definition: Globals.h:16
size_t ownershipTrackingBytes
Memory to allocate for ownership tracking.
Definition: Globals.h:17
Customizable thread-local and global variables for memory handling.
Definition: Globals.h:37
static Globals * push(Type type, Globals &globals)
Sets Globals as current, saving previous one.
static Globals & get(Type type)
Obtains current set of Globals.
static Globals * pop(Type type)
Restores Globals previously replaced by a push.
Type
Definition: Globals.h:39
@ Global
Shared globals (NOT thread-safe)
Definition: Globals.h:40
@ ThreadLocal
Thread-specific globals (separate copy for each thread)
Definition: Globals.h:41
static void init(Type type, GlobalSettings settings={})
Initialized Globals for current thread.
Customizable functions to allocate, reallocate and deallocate memory.
Definition: Memory.h:36