diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-11-12 14:15:50 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-11-12 14:15:50 -0200 |
commit | 5fda30b4f9f82b901113a6e666c797f835c708eb (patch) | |
tree | a8011434f8c2ccee920d955db05ba4917a00e5f8 /lua.h | |
parent | 9eafe9c053ef17a0980ab32082bf229bd58e963b (diff) | |
download | lua-5fda30b4f9f82b901113a6e666c797f835c708eb.tar.gz lua-5fda30b4f9f82b901113a6e666c797f835c708eb.tar.bz2 lua-5fda30b4f9f82b901113a6e666c797f835c708eb.zip |
'lua_toclose' gets the index to be closed as an argument
Sometimes it is useful to mark to-be-closed an index that is not
at the top of the stack (e.g., if the value to be closed came from
a function call returning multiple values).
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -333,7 +333,7 @@ LUA_API size_t (lua_stringtonumber) (lua_State *L, const char *s); | |||
333 | LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud); | 333 | LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud); |
334 | LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud); | 334 | LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud); |
335 | 335 | ||
336 | LUA_API void (lua_toclose) (lua_State *L); | 336 | LUA_API void (lua_toclose) (lua_State *L, int idx); |
337 | 337 | ||
338 | 338 | ||
339 | /* | 339 | /* |