aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manual/manual.of5
1 files changed, 4 insertions, 1 deletions
diff --git a/manual/manual.of b/manual/manual.of
index c5c74696..da71fbe9 100644
--- a/manual/manual.of
+++ b/manual/manual.of
@@ -4416,7 +4416,7 @@ otherwise, returns @id{NULL}.
4416} 4416}
4417 4417
4418@APIEntry{void lua_toclose (lua_State *L, int index);| 4418@APIEntry{void lua_toclose (lua_State *L, int index);|
4419@apii{0,0,m} 4419@apii{0,0,v}
4420 4420
4421Marks the given index in the stack as a 4421Marks the given index in the stack as a
4422to-be-closed slot @see{to-be-closed}. 4422to-be-closed slot @see{to-be-closed}.
@@ -4433,6 +4433,9 @@ A slot marked as to-be-closed should not be removed from the stack
4433by any other function in the API except @Lid{lua_settop} or @Lid{lua_pop}, 4433by any other function in the API except @Lid{lua_settop} or @Lid{lua_pop},
4434unless previously deactivated by @Lid{lua_closeslot}. 4434unless previously deactivated by @Lid{lua_closeslot}.
4435 4435
4436This function raises an error if the value at the given slot
4437neither has a @idx{__close} metamethod nor is a false value.
4438
4436This function should not be called for an index 4439This function should not be called for an index
4437that is equal to or below an active to-be-closed slot. 4440that is equal to or below an active to-be-closed slot.
4438 4441