Classes | Macros | Typedefs | Functions
lstate.h File Reference
#include "lua.h"
#include "lobject.h"
#include "ltm.h"
#include "lzio.h"
#include <signal.h>
Include dependency graph for lstate.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CallInfo
 
union  GCUnion
 
struct  global_State
 
struct  lua_State
 
struct  stringtable
 

Macros

#define BASIC_STACK_SIZE   (2*LUA_MINSTACK)
 
#define cast_u(o)   cast(union GCUnion *, (o))
 
#define CIST_C   (1<<1) /* call is running a C function */
 
#define CIST_FIN   (1<<6) /* call is running a finalizer */
 
#define CIST_HOOKED   (1<<2) /* call is running a debug hook */
 
#define CIST_HOOKYIELD   (1<<5) /* last hook called yielded */
 
#define CIST_OAH   (1<<0) /* original value of 'allowhook' */
 
#define CIST_TAIL   (1<<4) /* call was tail called */
 
#define CIST_TRAN   (1<<7) /* 'ci' has transfer information */
 
#define CIST_YPCALL   (1<<3) /* call is a yieldable protected call */
 
#define CSTACKCF   10
 
#define CSTACKERR   (8 * CSTACKCF)
 
#define CSTACKERRMARK   (CSTACKCF + 2)
 
#define CSTACKMARK   (CSTACKERR - (CSTACKCF + 2))
 
#define CSTACKTHREAD   (2 * CSTACKERR)
 
#define decnny(L)   ((L)->nCcalls -= 0x10000)
 
#define decXCcalls(L)   ((L)->nCcalls -= 0x10000 - CSTACKCF)
 
#define EXTRA_STACK   5
 
#define G(L)   (L->l_G)
 
#define gco2ccl(o)   check_exp((o)->tt == LUA_VCCL, &((cast_u(o))->cl.c))
 
#define gco2cl(o)   check_exp(novariant((o)->tt) == LUA_TFUNCTION, &((cast_u(o))->cl))
 
#define gco2lcl(o)   check_exp((o)->tt == LUA_VLCL, &((cast_u(o))->cl.l))
 
#define gco2p(o)   check_exp((o)->tt == LUA_VPROTO, &((cast_u(o))->p))
 
#define gco2t(o)   check_exp((o)->tt == LUA_VTABLE, &((cast_u(o))->h))
 
#define gco2th(o)   check_exp((o)->tt == LUA_VTHREAD, &((cast_u(o))->th))
 
#define gco2ts(o)   check_exp(novariant((o)->tt) == LUA_TSTRING, &((cast_u(o))->ts))
 
#define gco2u(o)   check_exp((o)->tt == LUA_VUSERDATA, &((cast_u(o))->u))
 
#define gco2upv(o)   check_exp((o)->tt == LUA_VUPVAL, &((cast_u(o))->upv))
 
#define getCcalls(L)   ((L)->nCcalls & 0xffff)
 
#define getoah(st)   ((st) & CIST_OAH)
 
#define gettotalbytes(g)   cast(lu_mem, (g)->totalbytes + (g)->GCdebt)
 
#define incnny(L)   ((L)->nCcalls += 0x10000)
 
#define incXCcalls(L)   ((L)->nCcalls += 0x10000 - CSTACKCF)
 
#define isLua(ci)   (!((ci)->callstatus & CIST_C))
 
#define isLuacode(ci)   (!((ci)->callstatus & (CIST_C | CIST_HOOKED)))
 
#define KGC_GEN   1 /* generational gc */
 
#define KGC_INC   0 /* incremental gc */
 
#define l_signalT   sig_atomic_t
 
#define luaE_exitCcall(L)   ((L)->nCcalls++)
 
#define obj2gco(v)   check_exp((v)->tt >= LUA_TSTRING, &(cast_u(v)->gc))
 
#define setoah(st, v)   ((st) = ((st) & ~CIST_OAH) | (v))
 
#define yieldable(L)   (((L)->nCcalls & 0xffff0000) == 0)
 

Typedefs

typedef struct CallInfo CallInfo
 
typedef struct global_State global_State
 
typedef struct stringtable stringtable
 

Functions

LUAI_FUNC void luaE_enterCcall (lua_State *L)
 
LUAI_FUNC CallInfoluaE_extendCI (lua_State *L)
 
LUAI_FUNC void luaE_freeCI (lua_State *L)
 
LUAI_FUNC void luaE_freethread (lua_State *L, lua_State *L1)
 
LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt)
 
LUAI_FUNC void luaE_shrinkCI (lua_State *L)
 
LUAI_FUNC void luaE_warnerror (lua_State *L, const char *where)
 
LUAI_FUNC void luaE_warning (lua_State *L, const char *msg, int tocont)
 

Macro Definition Documentation

#define BASIC_STACK_SIZE   (2*LUA_MINSTACK)

Definition at line 175 of file lstate.h.

#define cast_u (   o)    cast(union GCUnion *, (o))

Definition at line 361 of file lstate.h.

#define CIST_C   (1<<1) /* call is running a C function */

Definition at line 226 of file lstate.h.

#define CIST_FIN   (1<<6) /* call is running a finalizer */

Definition at line 231 of file lstate.h.

#define CIST_HOOKED   (1<<2) /* call is running a debug hook */

Definition at line 227 of file lstate.h.

#define CIST_HOOKYIELD   (1<<5) /* last hook called yielded */

Definition at line 230 of file lstate.h.

#define CIST_OAH   (1<<0) /* original value of 'allowhook' */

Definition at line 225 of file lstate.h.

#define CIST_TAIL   (1<<4) /* call was tail called */

Definition at line 229 of file lstate.h.

#define CIST_TRAN   (1<<7) /* 'ci' has transfer information */

Definition at line 232 of file lstate.h.

#define CIST_YPCALL   (1<<3) /* call is a yieldable protected call */

Definition at line 228 of file lstate.h.

#define CSTACKCF   10

Definition at line 112 of file lstate.h.

#define CSTACKERR   (8 * CSTACKCF)

Definition at line 125 of file lstate.h.

#define CSTACKERRMARK   (CSTACKCF + 2)

Definition at line 127 of file lstate.h.

#define CSTACKMARK   (CSTACKERR - (CSTACKCF + 2))

Definition at line 126 of file lstate.h.

#define CSTACKTHREAD   (2 * CSTACKERR)

Definition at line 131 of file lstate.h.

#define decnny (   L)    ((L)->nCcalls -= 0x10000)

Definition at line 145 of file lstate.h.

#define decXCcalls (   L)    ((L)->nCcalls -= 0x10000 - CSTACKCF)

Definition at line 151 of file lstate.h.

#define EXTRA_STACK   5

Definition at line 172 of file lstate.h.

#define G (   L)    (L->l_G)

Definition at line 332 of file lstate.h.

#define gco2ccl (   o)    check_exp((o)->tt == LUA_VCCL, &((cast_u(o))->cl.c))

Definition at line 368 of file lstate.h.

#define gco2cl (   o)    check_exp(novariant((o)->tt) == LUA_TFUNCTION, &((cast_u(o))->cl))

Definition at line 369 of file lstate.h.

#define gco2lcl (   o)    check_exp((o)->tt == LUA_VLCL, &((cast_u(o))->cl.l))

Definition at line 367 of file lstate.h.

#define gco2p (   o)    check_exp((o)->tt == LUA_VPROTO, &((cast_u(o))->p))

Definition at line 372 of file lstate.h.

#define gco2t (   o)    check_exp((o)->tt == LUA_VTABLE, &((cast_u(o))->h))

Definition at line 371 of file lstate.h.

#define gco2th (   o)    check_exp((o)->tt == LUA_VTHREAD, &((cast_u(o))->th))

Definition at line 373 of file lstate.h.

#define gco2ts (   o)    check_exp(novariant((o)->tt) == LUA_TSTRING, &((cast_u(o))->ts))

Definition at line 364 of file lstate.h.

#define gco2u (   o)    check_exp((o)->tt == LUA_VUSERDATA, &((cast_u(o))->u))

Definition at line 366 of file lstate.h.

#define gco2upv (   o)    check_exp((o)->tt == LUA_VUPVAL, &((cast_u(o))->upv))

Definition at line 374 of file lstate.h.

#define getCcalls (   L)    ((L)->nCcalls & 0xffff)

Definition at line 138 of file lstate.h.

#define getoah (   st)    ((st) & CIST_OAH)

Definition at line 245 of file lstate.h.

#define gettotalbytes (   g)    cast(lu_mem, (g)->totalbytes + (g)->GCdebt)

Definition at line 385 of file lstate.h.

#define incnny (   L)    ((L)->nCcalls += 0x10000)

Definition at line 142 of file lstate.h.

#define incXCcalls (   L)    ((L)->nCcalls += 0x10000 - CSTACKCF)

Definition at line 148 of file lstate.h.

#define isLua (   ci)    (!((ci)->callstatus & CIST_C))

Definition at line 238 of file lstate.h.

#define isLuacode (   ci)    (!((ci)->callstatus & (CIST_C | CIST_HOOKED)))

Definition at line 241 of file lstate.h.

#define KGC_GEN   1 /* generational gc */

Definition at line 180 of file lstate.h.

#define KGC_INC   0 /* incremental gc */

Definition at line 179 of file lstate.h.

#define l_signalT   sig_atomic_t

Definition at line 167 of file lstate.h.

#define luaE_exitCcall (   L)    ((L)->nCcalls++)

Definition at line 397 of file lstate.h.

#define obj2gco (   v)    check_exp((v)->tt >= LUA_TSTRING, &(cast_u(v)->gc))

Definition at line 381 of file lstate.h.

#define setoah (   st,
 
)    ((st) = ((st) & ~CIST_OAH) | (v))

Definition at line 244 of file lstate.h.

#define yieldable (   L)    (((L)->nCcalls & 0xffff0000) == 0)

Definition at line 135 of file lstate.h.

Typedef Documentation

typedef struct CallInfo CallInfo
typedef struct global_State global_State
typedef struct stringtable stringtable

Function Documentation

LUAI_FUNC void luaE_enterCcall ( lua_State L)

Definition at line 135 of file lstate.c.

LUAI_FUNC CallInfo* luaE_extendCI ( lua_State L)

Definition at line 156 of file lstate.c.

LUAI_FUNC void luaE_freeCI ( lua_State L)

Definition at line 174 of file lstate.c.

LUAI_FUNC void luaE_freethread ( lua_State L,
lua_State L1 
)

Definition at line 353 of file lstate.c.

LUAI_FUNC void luaE_setdebt ( global_State g,
l_mem  debt 
)

Definition at line 89 of file lstate.c.

LUAI_FUNC void luaE_shrinkCI ( lua_State L)

Definition at line 192 of file lstate.c.

LUAI_FUNC void luaE_warnerror ( lua_State L,
const char *  where 
)

Definition at line 458 of file lstate.c.

LUAI_FUNC void luaE_warning ( lua_State L,
const char *  msg,
int  tocont 
)

Definition at line 448 of file lstate.c.



plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:48