mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
Remove macros CORO_LEAVE/CORO_ENTER/CORO_SUB
This commit is contained in:
parent
bd883ad4d5
commit
4f16ff8c2e
1419
cheevos/cheevos.c
1419
cheevos/cheevos.c
File diff suppressed because it is too large
Load Diff
@ -5,23 +5,6 @@
|
|||||||
Released under the CC0: https://creativecommons.org/publicdomain/zero/1.0/
|
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 */
|
/* Go to the x label */
|
||||||
#define CORO_GOTO( x ) \
|
#define CORO_GOTO( x ) \
|
||||||
do { \
|
do { \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user