Go to the source code of this file.
Macros | |
#define | lcorolib_c |
#define | LUA_LIB |
Functions | |
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_corunning (lua_State *L) |
LUAMOD_API int | luaopen_coroutine (lua_State *L) |
Variables | |
static const luaL_Reg | co_funcs [] |
#define lcorolib_c |
Definition at line 10 of file lcorolib.cpp.
#define LUA_LIB |
Definition at line 11 of file lcorolib.cpp.
Definition at line 19 of file lcorolib.cpp.
References lua_checkstack(), lua_gettop(), LUA_OK, lua_pop, lua_pushliteral, lua_resume(), lua_status(), lua_xmove(), and LUA_YIELD.
Referenced by luaB_auxwrap(), and luaB_coresume().
Definition at line 66 of file lcorolib.cpp.
References auxresume(), lua_concat(), lua_error(), lua_gettop(), lua_insert(), lua_isstring(), lua_tothread(), lua_upvalueindex, and luaL_where().
Referenced by luaB_cowrap().
Definition at line 81 of file lcorolib.cpp.
References lua_newthread(), lua_pushvalue(), LUA_TFUNCTION, lua_xmove(), and luaL_checktype().
Referenced by luaB_cowrap().
Definition at line 48 of file lcorolib.cpp.
References auxresume(), lua_gettop(), lua_insert(), lua_pushboolean(), lua_tothread(), and luaL_argcheck.
Definition at line 131 of file lcorolib.cpp.
References lua_pushboolean(), and lua_pushthread().
Definition at line 103 of file lcorolib.cpp.
References lua_getstack(), lua_gettop(), LUA_OK, lua_pushliteral, lua_status(), lua_tothread(), LUA_YIELD, and luaL_argcheck.
Definition at line 91 of file lcorolib.cpp.
References lua_pushcclosure(), luaB_auxwrap(), and luaB_cocreate().
Definition at line 98 of file lcorolib.cpp.
References lua_gettop(), and lua_yield.
LUAMOD_API int luaopen_coroutine | ( | lua_State * | L | ) |
Definition at line 150 of file lcorolib.cpp.
References luaL_newlib.
Referenced by lua_kernel_base::lua_kernel_base().
|
static |
Definition at line 138 of file lcorolib.cpp.