Remove macros CORO_LEAVE/CORO_ENTER/CORO_SUB

This commit is contained in:
twinaphex 2018-01-19 16:54:44 +01:00
parent bd883ad4d5
commit 4f16ff8c2e
2 changed files with 713 additions and 723 deletions

File diff suppressed because it is too large Load Diff

View File

@ -5,23 +5,6 @@
Released under the CC0: https://creativecommons.org/publicdomain/zero/1.0/
*/
/* Use at the beginning of the coroutine, you must have declared a variable coro_t* coro */
#define CORO_ENTER() \
{ \
CORO_again: ; \
switch ( coro->step ) { \
case CORO_BEGIN: ;
/* Use to define labels which are targets to GOTO and GOSUB */
#define CORO_SUB( x ) \
case x: ;
/* Use at the end of the coroutine */
#define CORO_LEAVE() \
} \
} \
do { return 0; } while ( 0 )
/* Go to the x label */
#define CORO_GOTO( x ) \
do { \