This implementation borrows heavily from Simon Tatham's coroutines implementation in C: http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html
Definition in file lc-switch.h.
Go to the source code of this file.
Defines | |
#define | __LC_SWTICH_H__ |
#define | LC_INIT(s) s = 0; |
#define | LC_RESUME(s) switch(s) { case 0: |
#define | LC_SET(s) s = __LINE__; case __LINE__: |
#define | LC_END(s) } |
Typedefs | |
typedef unsigned short | lc_t |