Detail in the manual

This commit is contained in:
Roberto Ierusalimschy
2025-03-17 16:05:47 -03:00
parent 921832be8d
commit fdbb4c2341

View File

@@ -6230,15 +6230,17 @@ Returns the name of the type of the value at the given index.
@APIEntry{void luaL_unref (lua_State *L, int t, int ref);| @APIEntry{void luaL_unref (lua_State *L, int t, int ref);|
@apii{0,0,-} @apii{0,0,-}
Releases the reference @id{ref} from the table at index @id{t} Releases a reference @see{luaL_ref}.
@seeC{luaL_ref}. The integer @id{ref} must be either
The entry is removed from the table, @Lid{LUA_NOREF}, @Lid{LUA_REFNIL},
or a reference previously returned by @Lid{luaL_ref}
and not already released.
If @id{ref} is either @Lid{LUA_NOREF} or @Lid{LUA_REFNIL}
this function does nothing.
Otherwise, the entry is removed from the table,
so that the referred object can be collected and so that the referred object can be collected and
the reference @id{ref} can be used again by @Lid{luaL_ref}. the reference @id{ref} can be used again by @Lid{luaL_ref}.
If @id{ref} is @Lid{LUA_NOREF} or @Lid{LUA_REFNIL},
@Lid{luaL_unref} does nothing.
} }
@APIEntry{void luaL_where (lua_State *L, int lvl);| @APIEntry{void luaL_where (lua_State *L, int lvl);|