The Battle for Wesnoth  1.15.0+dev
Public Attributes | List of all members
global_State Struct Reference

#include <lstate.h>

Public Attributes

lua_Alloc frealloc
 
void * ud
 
l_mem totalbytes
 
l_mem GCdebt
 
lu_mem GCmemtrav
 
lu_mem GCestimate
 
stringtable strt
 
TValue l_registry
 
unsigned int seed
 
lu_byte currentwhite
 
lu_byte gcstate
 
lu_byte gckind
 
lu_byte gcrunning
 
GCObjectallgc
 
GCObject ** sweepgc
 
GCObjectfinobj
 
GCObjectgray
 
GCObjectgrayagain
 
GCObjectweak
 
GCObjectephemeron
 
GCObjectallweak
 
GCObjecttobefnz
 
GCObjectfixedgc
 
struct lua_Statetwups
 
unsigned int gcfinnum
 
int gcpause
 
int gcstepmul
 
lua_CFunction panic
 
struct lua_Statemainthread
 
const lua_Numberversion
 
TStringmemerrmsg
 
TStringtmname [TM_N]
 
struct Tablemt [LUA_NUMTAGS]
 
TStringstrcache [STRCACHE_N][STRCACHE_M]
 

Detailed Description

Definition at line 137 of file lstate.h.

Member Data Documentation

◆ allgc

GCObject* global_State::allgc

◆ allweak

GCObject* global_State::allweak

Definition at line 158 of file lstate.h.

Referenced by atomic(), lua_newstate(), restartcollection(), traverseephemeron(), and traversetable().

◆ currentwhite

lu_byte global_State::currentwhite

Definition at line 147 of file lstate.h.

Referenced by atomic(), lua_newstate(), and luaC_freeallobjects().

◆ ephemeron

GCObject* global_State::ephemeron

◆ finobj

GCObject* global_State::finobj

◆ fixedgc

GCObject* global_State::fixedgc

Definition at line 160 of file lstate.h.

Referenced by lua_newstate(), luaC_fix(), and luaC_freeallobjects().

◆ frealloc

lua_Alloc global_State::frealloc

Definition at line 138 of file lstate.h.

Referenced by close_state(), lua_newstate(), and luaM_realloc_().

◆ GCdebt

l_mem global_State::GCdebt

Definition at line 141 of file lstate.h.

Referenced by checkSizes(), getdebt(), lua_gc(), lua_newstate(), luaE_setdebt(), luaM_realloc_(), and sweepstep().

◆ GCestimate

lu_mem global_State::GCestimate

Definition at line 143 of file lstate.h.

Referenced by checkSizes(), lua_newstate(), luaC_fullgc(), setpause(), singlestep(), and sweepstep().

◆ gcfinnum

unsigned int global_State::gcfinnum

Definition at line 162 of file lstate.h.

Referenced by atomic(), lua_newstate(), and runafewfinalizers().

◆ gckind

lu_byte global_State::gckind

◆ GCmemtrav

lu_mem global_State::GCmemtrav

Definition at line 142 of file lstate.h.

Referenced by atomic(), propagatemark(), reallymarkobject(), and singlestep().

◆ gcpause

int global_State::gcpause

Definition at line 163 of file lstate.h.

Referenced by lua_gc(), lua_newstate(), and setpause().

◆ gcrunning

lu_byte global_State::gcrunning

Definition at line 150 of file lstate.h.

Referenced by f_luaopen(), GCTM(), lua_gc(), lua_newstate(), luaC_step(), and luaM_realloc_().

◆ gcstate

lu_byte global_State::gcstate

◆ gcstepmul

int global_State::gcstepmul

Definition at line 164 of file lstate.h.

Referenced by getdebt(), lua_gc(), lua_newstate(), and luaC_step().

◆ gray

GCObject* global_State::gray

◆ grayagain

GCObject* global_State::grayagain

◆ l_registry

TValue global_State::l_registry

Definition at line 145 of file lstate.h.

Referenced by atomic(), init_registry(), lua_newstate(), and restartcollection().

◆ mainthread

struct lua_State* global_State::mainthread

◆ memerrmsg

TString* global_State::memerrmsg

Definition at line 168 of file lstate.h.

Referenced by luaS_clearcache(), and luaS_init().

◆ mt

struct Table* global_State::mt[LUA_NUMTAGS]

Definition at line 170 of file lstate.h.

Referenced by lua_newstate(), and markmt().

◆ panic

lua_CFunction global_State::panic

Definition at line 165 of file lstate.h.

Referenced by lua_newstate(), and luaD_throw().

◆ seed

unsigned int global_State::seed

Definition at line 146 of file lstate.h.

Referenced by internshrstr(), and lua_newstate().

◆ strcache

TString* global_State::strcache[STRCACHE_N][STRCACHE_M]

Definition at line 171 of file lstate.h.

Referenced by luaS_clearcache(), and luaS_init().

◆ strt

stringtable global_State::strt

Definition at line 144 of file lstate.h.

Referenced by checkSizes(), internshrstr(), lua_newstate(), luaC_freeallobjects(), and singlestep().

◆ sweepgc

GCObject** global_State::sweepgc

Definition at line 152 of file lstate.h.

Referenced by entersweep(), lua_newstate(), luaC_checkfinalizer(), and sweepstep().

◆ tmname

TString* global_State::tmname[TM_N]

Definition at line 169 of file lstate.h.

◆ tobefnz

GCObject* global_State::tobefnz

◆ totalbytes

l_mem global_State::totalbytes

Definition at line 140 of file lstate.h.

Referenced by lua_newstate(), and luaE_setdebt().

◆ twups

struct lua_State* global_State::twups

Definition at line 161 of file lstate.h.

Referenced by lua_newstate(), remarkupvals(), and traversethread().

◆ ud

void* global_State::ud

Definition at line 139 of file lstate.h.

Referenced by close_state(), lua_newstate(), and luaM_realloc_().

◆ version

const lua_Number* global_State::version

Definition at line 167 of file lstate.h.

Referenced by close_state(), f_luaopen(), lua_newstate(), and luaM_realloc_().

◆ weak

GCObject* global_State::weak

Definition at line 156 of file lstate.h.

Referenced by atomic(), lua_newstate(), restartcollection(), and traverseweakvalue().


The documentation for this struct was generated from the following file: