LUA_GETFENV(3) Library Functions Manual LUA_GETFENV(3)

lua_getfenvpushes onto the stack the environment table of the value at the given index, function indicator [-0, +1, -]

#include <lua.h>

void
lua_getfenv(lua_State *L, int index);

() pushes onto the stack the environment table of the value at the given index.

Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.

The lua_getfenv() manual page is based on Lua Reference Manual 5.1 and was created by Sergey Bronnikov.

July 14, 2022 Debian