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:

Go to the source code of this file.

Macros

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

Functions

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

Variables

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

Macro Definition Documentation

◆ COS_DEAD

#define COS_DEAD   1

Definition at line 118 of file lcorolib.c.

◆ COS_NORM

#define COS_NORM   3

Definition at line 120 of file lcorolib.c.

◆ COS_RUN

#define COS_RUN   0

Definition at line 117 of file lcorolib.c.

◆ COS_YIELD

#define COS_YIELD   2

Definition at line 119 of file lcorolib.c.

◆ lcorolib_c

#define lcorolib_c

Definition at line 7 of file lcorolib.c.

◆ LUA_LIB

#define LUA_LIB

Definition at line 8 of file lcorolib.c.

Function Documentation

◆ auxresume()

static int auxresume ( lua_State L,
lua_State co,
int  narg 
)
static

Definition at line 32 of file lcorolib.c.

◆ auxstatus()

static int auxstatus ( lua_State L,
lua_State co 
)
static

Definition at line 127 of file lcorolib.c.

◆ getco()

static lua_State* getco ( lua_State L)
static

Definition at line 21 of file lcorolib.c.

◆ luaB_auxwrap()

static int luaB_auxwrap ( lua_State L)
static

Definition at line 73 of file lcorolib.c.

◆ luaB_close()

static int luaB_close ( lua_State L)
static

Definition at line 170 of file lcorolib.c.

◆ luaB_cocreate()

static int luaB_cocreate ( lua_State L)
static

Definition at line 95 of file lcorolib.c.

◆ luaB_coresume()

static int luaB_coresume ( lua_State L)
static

Definition at line 56 of file lcorolib.c.

◆ luaB_corunning()

static int luaB_corunning ( lua_State L)
static

Definition at line 163 of file lcorolib.c.

◆ luaB_costatus()

static int luaB_costatus ( lua_State L)
static

Definition at line 149 of file lcorolib.c.

◆ luaB_cowrap()

static int luaB_cowrap ( lua_State L)
static

Definition at line 105 of file lcorolib.c.

◆ luaB_yield()

static int luaB_yield ( lua_State L)
static

Definition at line 112 of file lcorolib.c.

◆ luaB_yieldable()

static int luaB_yieldable ( lua_State L)
static

Definition at line 156 of file lcorolib.c.

◆ luaopen_coroutine()

LUAMOD_API int luaopen_coroutine ( lua_State L)

Definition at line 206 of file lcorolib.c.

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},
{"close", luaB_close},
{NULL, NULL}
}

Definition at line 192 of file lcorolib.c.

◆ statname

const char* const statname[]
static
Initial value:
=
{"running", "dead", "suspended", "normal"}

Definition at line 123 of file lcorolib.c.

luaB_cocreate
static int luaB_cocreate(lua_State *L)
Definition: lcorolib.c:95
luaB_cowrap
static int luaB_cowrap(lua_State *L)
Definition: lcorolib.c:105
luaB_close
static int luaB_close(lua_State *L)
Definition: lcorolib.c:170
luaB_corunning
static int luaB_corunning(lua_State *L)
Definition: lcorolib.c:163
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:112
luaB_costatus
static int luaB_costatus(lua_State *L)
Definition: lcorolib.c:149
luaB_yieldable
static int luaB_yieldable(lua_State *L)
Definition: lcorolib.c:156


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:27