lstate.c File Reference

Go to the source code of this file.

Classes

struct  LG

Defines

#define lstate_c
#define LUA_CORE
#define state_size(x)   (sizeof(x) + LUAI_EXTRASPACE)
#define fromstate(l)   (cast(lu_byte *, (l)) - LUAI_EXTRASPACE)
#define tostate(l)   (cast(lua_State *, cast(lu_byte *, l) + LUAI_EXTRASPACE))

Functions

static void stack_init (lua_State *L1, lua_State *L)
static void freestack (lua_State *L, lua_State *L1)
static void f_luaopen (lua_State *L, void *ud)
static void preinit_state (lua_State *L, global_State *g)
static void close_state (lua_State *L)
lua_StateluaE_newthread (lua_State *L)
void luaE_freethread (lua_State *L, lua_State *L1)
LUA_API lua_Statelua_newstate (lua_Alloc f, void *ud)
static void callallgcTM (lua_State *L, void *ud)
LUA_API void lua_close (lua_State *L)

Define Documentation

#define fromstate (  )     (cast(lu_byte *, (l)) - LUAI_EXTRASPACE)

Definition at line 28 of file lstate.c.

Referenced by close_state(), and luaE_freethread().

#define lstate_c

Definition at line 10 of file lstate.c.

#define LUA_CORE

Definition at line 11 of file lstate.c.

#define state_size (  )     (sizeof(x) + LUAI_EXTRASPACE)

Definition at line 27 of file lstate.c.

Referenced by close_state(), lua_newstate(), luaE_freethread(), and luaE_newthread().

#define tostate (  )     (cast(lua_State *, cast(lu_byte *, l) + LUAI_EXTRASPACE))

Definition at line 29 of file lstate.c.

Referenced by lua_newstate(), and luaE_newthread().


Function Documentation

static void callallgcTM ( lua_State L,
void *  ud 
) [static]

Definition at line 193 of file lstate.c.

References luaC_callGCTM(), and UNUSED.

Referenced by lua_close().

static void close_state ( lua_State L  )  [static]
static void f_luaopen ( lua_State L,
void *  ud 
) [static]
static void freestack ( lua_State L,
lua_State L1 
) [static]
LUA_API void lua_close ( lua_State L  ) 
LUA_API lua_State* lua_newstate ( lua_Alloc  f,
void *  ud 
)
void luaE_freethread ( lua_State L,
lua_State L1 
)
lua_State* luaE_newthread ( lua_State L  ) 
static void preinit_state ( lua_State L,
global_State g 
) [static]
static void stack_init ( lua_State L1,
lua_State L 
) [static]

ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:50:00 2011 by Doxygen 1.6.1