|
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 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.
|
Creates a GblCClosure instance with the given callback and userdata, returning a pointer to it.
|
Creates and returns a new reference to the given GblCClosure, incrementing its refcount.
|
Releases the reference to the given GblCClosure, destroying it upon hitting zero.
|
Sets the C callback function of the given GblCClosure instance.
|
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.