diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-05-14 17:59:54 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-05-14 17:59:54 -0300 |
commit | e0efebdbe4e4053c6fb78588c546f1dc23aa964a (patch) | |
tree | 6970f23cdb763ff014a43e56122b4204978445b7 | |
parent | e84f7bf19852c35ad0a1e9a1654a7b99a211e17c (diff) | |
download | lua-e0efebdbe4e4053c6fb78588c546f1dc23aa964a.tar.gz lua-e0efebdbe4e4053c6fb78588c546f1dc23aa964a.tar.bz2 lua-e0efebdbe4e4053c6fb78588c546f1dc23aa964a.zip |
Detail in the manual
Function 'lua_toclose' can raise a non-memory error (but not a
memory error).
-rw-r--r-- | manual/manual.of | 5 |
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 | ||
4421 | Marks the given index in the stack as a | 4421 | Marks the given index in the stack as a |
4422 | to-be-closed slot @see{to-be-closed}. | 4422 | to-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 | |||
4433 | by any other function in the API except @Lid{lua_settop} or @Lid{lua_pop}, | 4433 | by any other function in the API except @Lid{lua_settop} or @Lid{lua_pop}, |
4434 | unless previously deactivated by @Lid{lua_closeslot}. | 4434 | unless previously deactivated by @Lid{lua_closeslot}. |
4435 | 4435 | ||
4436 | This function raises an error if the value at the given slot | ||
4437 | neither has a @idx{__close} metamethod nor is a false value. | ||
4438 | |||
4436 | This function should not be called for an index | 4439 | This function should not be called for an index |
4437 | that is equal to or below an active to-be-closed slot. | 4440 | that is equal to or below an active to-be-closed slot. |
4438 | 4441 | ||