CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
closure.h File Reference

Basic closure functionality. More...

#include <cx/cx.h>
#include <cx/stype/stvar.h>
#include <cx/utils/macros/args.h>

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__ })
 

Typedefs

typedef struct closure_ref * closure
 Opaque handle to a closure.
 
typedef bool(* closureFunc) (stvlist *cvars, stvlist *args)
 

Functions

closure closureClone (closure cls)
 
void closureDestroy (closure *cls)
 

Detailed Description

Basic closure functionality.

Definition in file closure.h.