# FuncState Struct Reference

`#include <lua/lparser.h>`

Collaboration diagram for FuncState:
[legend]

## Data Fields

Proto * | f
Table * | h
struct FuncState * | prev
struct LexState * | ls
struct lua_State * | L
struct BlockCnt * | bl
int | pc
int | lasttarget
int | jpc
int | freereg
int | nk
int | np
short | nlocvars
lu_byte | nactvar
upvaldesc | upvalues [60]
unsigned short | actvar [200]

## Detailed Description

Definition at line 58 of file lparser.h.

## Field Documentation

Proto* FuncState::f

Definition at line 59 of file lparser.h.

Referenced by addk(), body(), chunk(), close_func(), constructor(), errorlimit(), fixjump(), getjump(), getjumpcontrol(), indexupvalue(), luaK_checkstack(), luaK_code(), luaK_fixline(), luaK_nil(), luaY_parser(), open_func(), parlist(), pushclosure(), registerlocalvar(), and simpleexp().

Table* FuncState::h

Definition at line 60 of file lparser.h.

Referenced by addk(), luaX_newstring(), nilK(), and open_func().

struct FuncState* FuncState::prev `[read]`

Definition at line 61 of file lparser.h.

Referenced by close_func(), luaY_parser(), open_func(), and singlevaraux().

struct LexState* FuncState::ls `[read]`

Definition at line 62 of file lparser.h.

Referenced by errorlimit(), fixjump(), leaveblock(), luaK_checkstack(), luaK_codeABC(), luaK_codeABx(), luaK_setlist(), and open_func().

struct lua_State* FuncState::L `[read]`

Definition at line 63 of file lparser.h.

Referenced by addk(), errorlimit(), indexupvalue(), luaK_code(), luaK_stringK(), nilK(), and open_func().

struct BlockCnt* FuncState::bl `[read]`

Definition at line 64 of file lparser.h.

Referenced by breakstat(), close_func(), enterblock(), leaveblock(), markupval(), and open_func().

int FuncState::pc

Definition at line 65 of file lparser.h.

Referenced by adjustlocalvars(), close_func(), dischargejpc(), jumponcond(), localfunc(), luaK_code(), luaK_fixline(), luaK_getlabel(), luaK_nil(), luaK_patchlist(), open_func(), and removevars().

int FuncState::lasttarget

Definition at line 66 of file lparser.h.

Referenced by luaK_getlabel(), luaK_nil(), and open_func().

int FuncState::jpc

Definition at line 67 of file lparser.h.

Referenced by dischargejpc(), luaK_jump(), luaK_patchtohere(), and open_func().

int FuncState::freereg

Definition at line 68 of file lparser.h.

Referenced by adjust_assign(), assignment(), check_conflict(), chunk(), discharge2anyreg(), enterblock(), forlist(), fornum(), freereg(), funcargs(), leaveblock(), localfunc(), luaK_checkstack(), luaK_exp2nextreg(), luaK_reserveregs(), luaK_self(), luaK_setlist(), luaK_setreturns(), open_func(), recfield(), and retstat().

int FuncState::nk

Definition at line 69 of file lparser.h.

Referenced by addk(), close_func(), luaK_exp2RK(), and open_func().

int FuncState::np

Definition at line 70 of file lparser.h.

Referenced by close_func(), open_func(), and pushclosure().

short FuncState::nlocvars

Definition at line 71 of file lparser.h.

Referenced by close_func(), open_func(), and registerlocalvar().

lu_byte FuncState::nactvar

Definition at line 72 of file lparser.h.

Referenced by adjustlocalvars(), chunk(), enterblock(), freereg(), leaveblock(), localfunc(), luaK_exp2anyreg(), luaK_nil(), new_localvar(), open_func(), parlist(), removevars(), retstat(), and searchvar().

upvaldesc FuncState::upvalues[60]

Definition at line 73 of file lparser.h.

Referenced by indexupvalue(), and pushclosure().

unsigned short FuncState::actvar[200]

Definition at line 74 of file lparser.h.

Referenced by new_localvar().

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

- lua/lparser.h