LUAL_WHERE(3) Library Functions Manual LUAL_WHERE(3)

luaL_wherepushes onto the stack a string identifying the current position of the control, function indicator [-0, +1, m]

#include <lauxlib.h>

void
luaL_where(lua_State *L, int lvl);

() pushes onto the stack a string identifying the current position of the control at level lvl in the call stack. Typically this string has the following format:

:

Level 0 is the running function, level 1 is the function that called the running function, etc.

This function is used to build a prefix for error messages.

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

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

July 21, 2022 Debian