libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
|
#include <gimbal_c_closure.h>
Data Fields | ||
union { | ||
GblCClosureClass * pClass | ||
GblClosure base | ||
}; | ||
struct { | ||
GblFnPtr pFnCallback | ||
} | private_ | |
Data Fields inherited from GblClosure | ||
union { | ||
GblClosureClass * pClass | ||
GblBox base | ||
}; | ||
struct { | ||
GblMarshalFn pFnMarshal | ||
} | private_ | |
Data Fields inherited from GblBox | ||
union { | ||
GblBoxClass * pClass | ||
GblInstance base | ||
}; | ||
struct { | ||
GblArrayMap * pFields | ||
volatile uint16_t refCounter | ||
uint16_t contextType: 1 | ||
uint16_t constructedInPlace: 1 | ||
uint16_t derivedFlags: 14 | ||
} | private_ | |
Data Fields inherited from GblInstance | ||
GblClass * | pClass | |
Closure type for invoking C functions.
GblCClosure is a GblClosure which is used to marshal generic arguments into a C function pointer and marshal out the return value.
Definition at line 58 of file gimbal_c_closure.h.
|
related |
Creates a GblCClosure instance with the given callback and userdata, returning a pointer to it.
|
related |
Creates and returns a new reference to the given GblCClosure, incrementing its refcount.
|
related |
Releases the reference to the given GblCClosure, destroying it upon hitting zero.
|
related |
Sets the C callback function of the given GblCClosure instance.
|
related |
Returns the C callback function of the given GblClosure instance.
GblCClosureClass* GblCClosure::pClass |
Pointer to class/vtable structure.
Definition at line 58 of file gimbal_c_closure.h.
GblClosure GblCClosure::base |
Inherited base instance structure.
Definition at line 58 of file gimbal_c_closure.h.
GblFnPtr GblCClosure::pFnCallback |
PRIVATE: C Function pointer to invoke as a callback.
Definition at line 60 of file gimbal_c_closure.h.