2
3
4
5
6
7
8
10#ifndef GIMBAL_CONTEXT_H
11#define GIMBAL_CONTEXT_H
14#include "../ifaces/gimbal_iallocator.h"
15#include "../ifaces/gimbal_ilogger.h"
18#define GBL_CONTEXT_TYPE (GBL_TYPEID(GblContext))
19#define GBL_CONTEXT(instance) (GBL_CAST(GblContext, instance))
20#define GBL_CONTEXT_CLASS(klass) (GBL_CLASS_CAST(GblContext, klass))
21#define GBL_CONTEXT_GET_CLASS(instance) (GBL_CLASSOF(GblContext, instance))
23#define GBL_SELF_TYPE GblContext
28
29
30
31
32
33
34
35
36
37
38
40 GblObject, GblIAllocator, GblILogger)
43
44
45
46
47
48
49
50
51
52
55 uint32_t logStackDepth;
#define GBL_CLASS_CAST(cType, klass)
#define GBL_TYPEID(instanceStruct)
#define GBL_INSTANCE_DERIVE(derivedInstance, baseInstance)
#define GBL_CLASS_DERIVE_EMPTY(...)
#define GBL_CLASSOF(cType, self)
#define GBL_CAST(cType, self)
#define GBL_UINT32_TYPE
Builtin ID for uint32_t GblVariant type.
#define GBL_PROPERTIES(object,...)
Declares a list of properties for the given object/instance structure.
uint32_t GblFlags
Standard-sized flags type, 32-bits across platforms.
uint8_t GblBool
Basic boolean type, standardized to sizeof(char)
Captures a result, its stringified message, and a source context.
Top-level context object.