lua5.4
宏定义 | 函数 | 变量
lcorolib.c 文件参考
#include "lprefix.h"
#include <stdlib.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
lcorolib.c 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

宏定义

#define lcorolib_c
 
#define LUA_LIB
 
#define COS_RUN   0
 
#define COS_DEAD   1
 
#define COS_YIELD   2
 
#define COS_NORM   3
 

函数

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 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)
 

变量

static const char *const statname []
 
static const luaL_Reg co_funcs []
 

宏定义说明

◆ COS_DEAD

#define COS_DEAD   1

◆ COS_NORM

#define COS_NORM   3

◆ COS_RUN

#define COS_RUN   0

◆ COS_YIELD

#define COS_YIELD   2

◆ lcorolib_c

#define lcorolib_c

◆ LUA_LIB

#define LUA_LIB

函数说明

◆ auxresume()

static int auxresume ( lua_State L,
lua_State co,
int  narg 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ auxstatus()

static int auxstatus ( lua_State L,
lua_State co 
)
static
函数调用图:
这是这个函数的调用关系图:

◆ getco()

static lua_State* getco ( lua_State L)
static
函数调用图:
这是这个函数的调用关系图:

◆ luaB_auxwrap()

static int luaB_auxwrap ( lua_State L)
static
函数调用图:
这是这个函数的调用关系图:

◆ luaB_close()

static int luaB_close ( lua_State L)
static
函数调用图:

◆ luaB_cocreate()

static int luaB_cocreate ( lua_State L)
static
函数调用图:
这是这个函数的调用关系图:

◆ luaB_coresume()

static int luaB_coresume ( lua_State L)
static
函数调用图:

◆ luaB_corunning()

static int luaB_corunning ( lua_State L)
static
函数调用图:

◆ luaB_costatus()

static int luaB_costatus ( lua_State L)
static
函数调用图:

◆ luaB_cowrap()

static int luaB_cowrap ( lua_State L)
static
函数调用图:

◆ luaB_yield()

static int luaB_yield ( lua_State L)
static
函数调用图:

◆ luaB_yieldable()

static int luaB_yieldable ( lua_State L)
static
函数调用图:

◆ luaopen_coroutine()

LUAMOD_API int luaopen_coroutine ( lua_State L)

变量说明

◆ co_funcs

const luaL_Reg co_funcs[]
static
初始值:
= {
{"create", luaB_cocreate},
{"resume", luaB_coresume},
{"running", luaB_corunning},
{"status", luaB_costatus},
{"wrap", luaB_cowrap},
{"yield", luaB_yield},
{"isyieldable", luaB_yieldable},
{"close", luaB_close},
{NULL, NULL}
}

◆ statname

const char* const statname[]
static
初始值:
=
{"running", "dead", "suspended", "normal"}
luaB_cocreate
static int luaB_cocreate(lua_State *L)
Definition: lcorolib.c:92
luaB_cowrap
static int luaB_cowrap(lua_State *L)
Definition: lcorolib.c:102
luaB_close
static int luaB_close(lua_State *L)
Definition: lcorolib.c:167
luaB_corunning
static int luaB_corunning(lua_State *L)
Definition: lcorolib.c:160
luaB_coresume
static int luaB_coresume(lua_State *L)
Definition: lcorolib.c:56
luaB_yield
static int luaB_yield(lua_State *L)
Definition: lcorolib.c:109
luaB_costatus
static int luaB_costatus(lua_State *L)
Definition: lcorolib.c:146
luaB_yieldable
static int luaB_yieldable(lua_State *L)
Definition: lcorolib.c:153