# lua_State Struct Reference

`#include <lstate.h>`

List of all members.

## Public Attributes
| CommonHeader
lu_byte | status
StkId | top
StkId | base
global_State * | l_G
CallInfo * | ci
const Instruction * | savedpc
StkId | stack_last
StkId | stack
CallInfo * | end_ci
CallInfo * | base_ci
int | stacksize
int | size_ci
unsigned short | nCcalls
unsigned short | baseCcalls
lu_byte | hookmask
lu_byte | allowhook
int | basehookcount
int | hookcount
lua_Hook | hook
TValue | l_gt
TValue | env
GCObject * | openupval
GCObject * | gclist
struct lua_longjmp * | errorJmp
ptrdiff_t | errfunc

## Member Data Documentation

lua_State::CommonHeader

lu_byte lua_State::status

StkId lua_State::top

StkId lua_State::base

global_State* lua_State::l_G

CallInfo* lua_State::ci

const Instruction* lua_State::savedpc

StkId lua_State::stack_last

StkId lua_State::stack

CallInfo* lua_State::end_ci

CallInfo* lua_State::base_ci

int lua_State::stacksize

int lua_State::size_ci

unsigned short lua_State::nCcalls

unsigned short lua_State::baseCcalls

lu_byte lua_State::hookmask

lu_byte lua_State::allowhook

int lua_State::basehookcount

int lua_State::hookcount

lua_Hook lua_State::hook

TValue lua_State::l_gt

TValue lua_State::env

GCObject* lua_State::openupval

GCObject* lua_State::gclist

struct lua_longjmp* lua_State::errorJmp`[read]`

ptrdiff_t lua_State::errfunc

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

- lstate.h