Github User Fetcher 1.0.0
C Application with Server and GUI
|
Go to the source code of this file.
Macros | |
#define | lcorolib_c |
#define | LUA_LIB |
#define | COS_RUN 0 |
#define | COS_DEAD 1 |
#define | COS_YIELD 2 |
#define | COS_NORM 3 |
Functions | |
static lua_State * | getco (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 | auxstatus (lua_State *L, lua_State *co) |
static int | luaB_costatus (lua_State *L) |
static int | luaB_yieldable (lua_State *L) |
static int | luaB_corunning (lua_State *L) |
static int | luaB_close (lua_State *L) |
LUAMOD_API int | luaopen_coroutine (lua_State *L) |
Variables | |
static const char *const | statname [] |
static const luaL_Reg | co_funcs [] |
#define COS_DEAD 1 |
Definition at line 118 of file lua-5.4.3/src/lcorolib.c.
Referenced by auxstatus(), and luaB_close().
#define COS_NORM 3 |
Definition at line 120 of file lua-5.4.3/src/lcorolib.c.
Referenced by auxstatus().
#define COS_RUN 0 |
Definition at line 117 of file lua-5.4.3/src/lcorolib.c.
Referenced by auxstatus().
#define COS_YIELD 2 |
Definition at line 119 of file lua-5.4.3/src/lcorolib.c.
Referenced by auxstatus(), and luaB_close().
#define lcorolib_c |
Definition at line 7 of file lua-5.4.3/src/lcorolib.c.
#define LUA_LIB |
Definition at line 8 of file lua-5.4.3/src/lcorolib.c.
Definition at line 32 of file lua-5.4.3/src/lcorolib.c.
References lua_checkstack(), LUA_OK, lua_pop, lua_pushliteral, lua_resume(), lua_xmove(), and LUA_YIELD.
Referenced by luaB_auxwrap(), and luaB_coresume().
Definition at line 127 of file lua-5.4.3/src/lcorolib.c.
References COS_DEAD, COS_NORM, COS_RUN, COS_YIELD, lua_getstack(), lua_gettop(), LUA_OK, lua_status(), and LUA_YIELD.
Referenced by luaB_close(), and luaB_costatus().
Definition at line 21 of file lua-5.4.3/src/lcorolib.c.
References lua_tothread(), and luaL_argexpected.
Referenced by luaB_close(), luaB_coresume(), luaB_costatus(), and luaB_yieldable().
|
static |
Definition at line 73 of file lua-5.4.3/src/lcorolib.c.
References auxresume(), lua_assert, lua_concat(), LUA_ERRMEM, lua_error(), lua_gettop(), lua_insert, LUA_OK, lua_resetthread(), lua_status(), lua_tothread(), LUA_TSTRING, lua_type(), lua_upvalueindex, lua_xmove(), LUA_YIELD, and luaL_where().
Referenced by luaB_cowrap().
|
static |
Definition at line 170 of file lua-5.4.3/src/lcorolib.c.
References auxstatus(), COS_DEAD, COS_YIELD, getco(), LUA_OK, lua_pushboolean(), lua_resetthread(), lua_xmove(), luaL_error(), and statname.
|
static |
Definition at line 95 of file lua-5.4.3/src/lcorolib.c.
References lua_newthread(), lua_pushvalue(), LUA_TFUNCTION, lua_xmove(), and luaL_checktype().
Referenced by luaB_cowrap().
|
static |
Definition at line 56 of file lua-5.4.3/src/lcorolib.c.
References auxresume(), getco(), lua_gettop(), lua_insert, and lua_pushboolean().
|
static |
Definition at line 163 of file lua-5.4.3/src/lcorolib.c.
References lua_pushboolean(), and lua_pushthread().
|
static |
Definition at line 149 of file lua-5.4.3/src/lcorolib.c.
References auxstatus(), getco(), lua_pushstring(), and statname.
|
static |
Definition at line 105 of file lua-5.4.3/src/lcorolib.c.
References lua_pushcclosure(), luaB_auxwrap(), and luaB_cocreate().
|
static |
Definition at line 112 of file lua-5.4.3/src/lcorolib.c.
References lua_gettop(), and lua_yield.
|
static |
Definition at line 156 of file lua-5.4.3/src/lcorolib.c.
References getco(), lua_isnone, lua_isyieldable(), and lua_pushboolean().
LUAMOD_API int luaopen_coroutine | ( | lua_State * | L | ) |
Definition at line 206 of file lua-5.4.3/src/lcorolib.c.
References co_funcs, and luaL_newlib.
|
static |
Definition at line 192 of file lua-5.4.3/src/lcorolib.c.
Referenced by luaopen_coroutine().
|
static |
Definition at line 123 of file lua-5.4.3/src/lcorolib.c.
Referenced by luaB_close(), and luaB_costatus().