RetroArch
Macros
coro.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CORO_ENTER()
 
#define CORO_SUB(x)   case x: ;
 
#define CORO_LEAVE()
 
#define CORO_GOTO(x)
 
#define CORO_GOSUB(x)
 
#define CORO_RET()
 
#define CORO_YIELD()
 
#define CORO_BEGIN   0
 
#define CORO_SETUP()
 
#define CORO_STOP()
 
#define CORO_FIELDS
 

Macro Definition Documentation

◆ CORO_BEGIN

#define CORO_BEGIN   0

◆ CORO_ENTER

#define CORO_ENTER ( )
Value:
{ \
CORO_again: ; \
switch ( coro->step ) { \
case CORO_BEGIN: ;
#define CORO_BEGIN
Definition: coro.h:56

◆ CORO_FIELDS

#define CORO_FIELDS
Value:
int step, sp; \
int stack[ 8 ];

◆ CORO_GOSUB

#define CORO_GOSUB (   x)
Value:
do { \
coro->stack[ coro->sp++ ] = __LINE__; \
coro->step = ( x ); \
goto CORO_again; \
case __LINE__: ; \
} while ( 0 )
GLint GLint GLint GLint GLint x
Definition: glext.h:6295

◆ CORO_GOTO

#define CORO_GOTO (   x)
Value:
do { \
coro->step = ( x ); \
goto CORO_again; \
} while ( 0 )
GLint GLint GLint GLint GLint x
Definition: glext.h:6295

◆ CORO_LEAVE

#define CORO_LEAVE ( )
Value:
} } \
do { return 0; } while ( 0 )

◆ CORO_RET

#define CORO_RET ( )
Value:
do { \
coro->step = coro->stack[ --coro->sp ]; \
goto CORO_again; \
} while ( 0 )

◆ CORO_SETUP

#define CORO_SETUP ( )
Value:
do { \
coro->step = CORO_BEGIN; \
coro->sp = 0; \
} while ( 0 )
#define CORO_BEGIN
Definition: coro.h:56

◆ CORO_STOP

#define CORO_STOP ( )
Value:
do { \
return 0; \
} while ( 0 )

◆ CORO_SUB

#define CORO_SUB (   x)    case x: ;

◆ CORO_YIELD

#define CORO_YIELD ( )
Value:
do { \
coro->step = __LINE__; \
return 1; \
case __LINE__: ; \
} while ( 0 )