RetroArch
Macros | Functions | Variables
lcorolib.c File Reference
#include "lprefix.h"
#include <stdlib.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
Include dependency graph for lcorolib.c:

Macros

#define lcorolib_c
 
#define LUA_LIB
 

Functions

static lua_Stategetco (lua_State *L)
 
static int auxresume (lua_State *L, lua_State *co, int narg)
 
static int luaB_coresume (lua_State *L)
 
static int luaB_auxwrap (lua_State *L)
 
static int luaB_cocreate (lua_State *L)
 
static int luaB_cowrap (lua_State *L)
 
static int luaB_yield (lua_State *L)
 
static int luaB_costatus (lua_State *L)
 
static int luaB_yieldable (lua_State *L)
 
static int luaB_corunning (lua_State *L)
 
LUAMOD_API int luaopen_coroutine (lua_State *L)
 

Variables

static const luaL_Reg co_funcs []
 

Macro Definition Documentation

◆ lcorolib_c

#define lcorolib_c

◆ LUA_LIB

#define LUA_LIB

Function Documentation

◆ auxresume()

static int auxresume ( lua_State L,
lua_State co,
int  narg 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getco()

static lua_State* getco ( lua_State L)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaB_auxwrap()

static int luaB_auxwrap ( lua_State L)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaB_cocreate()

static int luaB_cocreate ( lua_State L)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ luaB_coresume()

static int luaB_coresume ( lua_State L)
static
Here is the call graph for this function:

◆ luaB_corunning()

static int luaB_corunning ( lua_State L)
static
Here is the call graph for this function:

◆ luaB_costatus()

static int luaB_costatus ( lua_State L)
static
Here is the call graph for this function:

◆ luaB_cowrap()

static int luaB_cowrap ( lua_State L)
static
Here is the call graph for this function:

◆ luaB_yield()

static int luaB_yield ( lua_State L)
static
Here is the call graph for this function:

◆ luaB_yieldable()

static int luaB_yieldable ( lua_State L)
static
Here is the call graph for this function:

◆ luaopen_coroutine()

LUAMOD_API int luaopen_coroutine ( lua_State L)
Here is the call graph for this function:

Variable Documentation

◆ co_funcs

const luaL_Reg co_funcs[]
static
Initial value:
= {
{"create", luaB_cocreate},
{"resume", luaB_coresume},
{"running", luaB_corunning},
{"status", luaB_costatus},
{"wrap", luaB_cowrap},
{"yield", luaB_yield},
{"isyieldable", luaB_yieldable},
}
static int luaB_coresume(lua_State *L)
Definition: lcorolib.c:57
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static int luaB_cowrap(lua_State *L)
Definition: lcorolib.c:99
static int luaB_yieldable(lua_State *L)
Definition: lcorolib.c:138
static int luaB_yield(lua_State *L)
Definition: lcorolib.c:106
static int luaB_costatus(lua_State *L)
Definition: lcorolib.c:111
static int luaB_cocreate(lua_State *L)
Definition: lcorolib.c:89
static int luaB_corunning(lua_State *L)
Definition: lcorolib.c:144