LUA_GETGLOBAL(3) Library Functions Manual LUA_GETGLOBAL(3)

lua_getglobalpushes onto the stack the value of the global name, function indicator [-0, +1, e]

#include <lua.h>

void
lua_getglobal(lua_State *L, const char *name);

() pushes onto the stack the value of the global name. It is defined as a macro:

#define lua_getglobal(L,s) lua_getfield(L, LUA_GLOBALSINDEX, s)

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

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

July 19, 2022 Debian