MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / value2fenv

Function value2fenv

other_src/lua/src/lpeg.cpp:1034–1040  ·  view source on GitHub ↗

** create a new ktable for pattern at the stack top, mapping ** '1' to the value at stack position 'vidx'. */

Source from the content-addressed store, hash-verified

1032** '1' to the value at stack position 'vidx'.
1033*/
1034static int value2fenv (lua_State *L, int vidx) {
1035 lua_createtable(L, 1, 0);
1036 lua_pushvalue(L, vidx);
1037 lua_rawseti(L, -2, 1);
1038 lua_setfenv(L, -2);
1039 return 1;
1040}
1041
1042
1043static Instruction *newpatt (lua_State *L, size_t n) {

Callers 4

nter_lFunction · 0.85
getpattFunction · 0.85
getlabelFunction · 0.85
matchtime_lFunction · 0.85

Calls 4

lua_createtableFunction · 0.70
lua_pushvalueFunction · 0.70
lua_rawsetiFunction · 0.70
lua_setfenvFunction · 0.70

Tested by

no test coverage detected