µEvLoop
A fast and lightweight event loop aimed at embedded platforms in C99.
|
Go to the documentation of this file.
7 #ifndef UEL_CONDITIONAL_H
8 #define UEL_CONDITIONAL_H
36 uel_closure_t if_true, uel_closure_t if_false);
Conditionals are constructs that provide functional flow control.
Definition: conditional.h:19
uel_closure_t if_true
The closure that will be invoked if the test closure returns true
Definition: conditional.h:23
uel_closure_t if_false
The closure that will be invoked if the test closure returns false
Definition: conditional.h:25
Defines closures, objects that bind functions to creating and calling contexts.
uel_closure_t test
A closure that, based on its input, should return true or false.
Definition: conditional.h:21
void * uel_conditional_apply(uel_conditional_t *conditional, void *params)
Applies a conditional do some input.
void uel_conditional_init(uel_conditional_t *conditional, uel_closure_t test, uel_closure_t if_true, uel_closure_t if_false)
Initialises a conditional structure.