LUAL_UNREF(3) Library Functions Manual LUAL_UNREF(3)

luaL_unrefreleases reference from the table, function indicator [-0, +0, -]

#include <lauxlib.h>

void
luaL_unref(lua_State *L, int t, int ref);

() releases reference ref from the table at index t (see luaL_ref(3)). The entry is removed from the table, so that the referred object can be collected. The reference ref is also freed to be used again.

If ref is LUA_NOREF or LUA_REFNIL, luaL_unref does nothing.

luaL_ref(3)

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

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

July 21, 2022 Debian