2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
20#include "../core/gimbal_ctx.h"
22#define GBL_SELF_TYPE GblRef
27
28
31typedef GBL_RESULT (*GblRefDestructFn) (
GBL_SELF);
49#define GblRef_ref(ref) GblRef_acquire(ref)
52#define GblRef_create__1(size) GblRef_alloc(size)
53#define GblRef_create__2(size, ctx) GblRef_allocWithContext(size, ctx)
55#define GblRef_unref__1(ref) GblRef_release(ref)
56#define GblRef_unref__2(ref, dtor) GblRef_releaseWithDtor(ref, dtor)
#define GBL_VA_OVERLOAD_CALL_ARGC(BASE,...)
uint16_t GblRefCount
Type able to hold a reference counter across the codebase.
void GblRef
Reference-counted shared pointer type.