diff options
| -rw-r--r-- | manual/manual.of | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/manual/manual.of b/manual/manual.of index b698672a..c1a9c138 100644 --- a/manual/manual.of +++ b/manual/manual.of | |||
| @@ -6230,15 +6230,17 @@ Returns the name of the type of the value at the given index. | |||
| 6230 | @APIEntry{void luaL_unref (lua_State *L, int t, int ref);| | 6230 | @APIEntry{void luaL_unref (lua_State *L, int t, int ref);| |
| 6231 | @apii{0,0,-} | 6231 | @apii{0,0,-} |
| 6232 | 6232 | ||
| 6233 | Releases the reference @id{ref} from the table at index @id{t} | 6233 | Releases a reference @see{luaL_ref}. |
| 6234 | @seeC{luaL_ref}. | 6234 | The integer @id{ref} must be either |
| 6235 | The entry is removed from the table, | 6235 | @Lid{LUA_NOREF}, @Lid{LUA_REFNIL}, |
| 6236 | or a reference previously returned by @Lid{luaL_ref} | ||
| 6237 | and not already released. | ||
| 6238 | If @id{ref} is either @Lid{LUA_NOREF} or @Lid{LUA_REFNIL} | ||
| 6239 | this function does nothing. | ||
| 6240 | Otherwise, the entry is removed from the table, | ||
| 6236 | so that the referred object can be collected and | 6241 | so that the referred object can be collected and |
| 6237 | the reference @id{ref} can be used again by @Lid{luaL_ref}. | 6242 | the reference @id{ref} can be used again by @Lid{luaL_ref}. |
| 6238 | 6243 | ||
| 6239 | If @id{ref} is @Lid{LUA_NOREF} or @Lid{LUA_REFNIL}, | ||
| 6240 | @Lid{luaL_unref} does nothing. | ||
| 6241 | |||
| 6242 | } | 6244 | } |
| 6243 | 6245 | ||
| 6244 | @APIEntry{void luaL_where (lua_State *L, int lvl);| | 6246 | @APIEntry{void luaL_where (lua_State *L, int lvl);| |
