diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-05-23 09:55:26 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-05-23 09:55:26 -0300 |
commit | cbdf4969ec425f1df1ade358425c0bf0bf811d83 (patch) | |
tree | de6078c0cc8db2cf3cd70c3ab9cc8777c2db43c9 /manual | |
parent | 262dc5729a28b2bad0b6413d4eab2290d14395cf (diff) | |
download | lua-cbdf4969ec425f1df1ade358425c0bf0bf811d83.tar.gz lua-cbdf4969ec425f1df1ade358425c0bf0bf811d83.tar.bz2 lua-cbdf4969ec425f1df1ade358425c0bf0bf811d83.zip |
Manual: errors in lua_toclose are not memory errors
Diffstat (limited to 'manual')
-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 5aea2623..f830b01c 100644 --- a/manual/manual.of +++ b/manual/manual.of | |||
@@ -4475,7 +4475,7 @@ otherwise, returns @id{NULL}. | |||
4475 | } | 4475 | } |
4476 | 4476 | ||
4477 | @APIEntry{void lua_toclose (lua_State *L, int index);| | 4477 | @APIEntry{void lua_toclose (lua_State *L, int index);| |
4478 | @apii{0,0,m} | 4478 | @apii{0,0,v} |
4479 | 4479 | ||
4480 | Marks the given index in the stack as a | 4480 | Marks the given index in the stack as a |
4481 | to-be-closed slot @see{to-be-closed}. | 4481 | to-be-closed slot @see{to-be-closed}. |
@@ -4492,6 +4492,9 @@ A slot marked as to-be-closed should not be removed from the stack | |||
4492 | by any other function in the API except @Lid{lua_settop} or @Lid{lua_pop}, | 4492 | by any other function in the API except @Lid{lua_settop} or @Lid{lua_pop}, |
4493 | unless previously deactivated by @Lid{lua_closeslot}. | 4493 | unless previously deactivated by @Lid{lua_closeslot}. |
4494 | 4494 | ||
4495 | This function raises an error if the value at the given slot | ||
4496 | neither has a @idx{__close} metamethod nor is a false value. | ||
4497 | |||
4495 | This function should not be called for an index | 4498 | This function should not be called for an index |
4496 | that is equal to or below an active to-be-closed slot. | 4499 | that is equal to or below an active to-be-closed slot. |
4497 | 4500 | ||