|
CX Framework
Cross-platform C utility framework
|
Basic closure functionality. More...
Go to the source code of this file.
Macros | |
| #define | closureCreate(func, ...) _closureCreate(func, count_macro_args(__VA_ARGS__), (stvar[]) { __VA_ARGS__ }) |
| #define | closureCall(cls, ...) _closureCall(cls, count_macro_args(__VA_ARGS__), (stvar[]) { __VA_ARGS__ }) |
| #define | closureCreateAs(sigtype, func, ...) |
| #define | closureCallAs(sigtype, cls, ...) ((sigtype)_closureFuncAs((cls), #sigtype))(_closureCvars((cls), &(stvlist) { 0 }), __VA_ARGS__) |
Typedefs | |
| typedef struct closure_ref * | closure |
| Opaque handle to a closure. | |
| typedef bool(* | closureFunc) (stvlist *cvars, stvlist *args) |
| typedef void(* | closureDestroyFunc) (stvlist *cvars) |
Functions | |
| void | closureSetDestroy (closure cls, closureDestroyFunc destroy) |
| closure | closureClone (closure cls) |
| void | closureDestroy (closure *cls) |
Basic closure functionality.
Definition in file closure.h.