aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-11-12 14:15:50 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-11-12 14:15:50 -0200
commit5fda30b4f9f82b901113a6e666c797f835c708eb (patch)
treea8011434f8c2ccee920d955db05ba4917a00e5f8 /lua.h
parent9eafe9c053ef17a0980ab32082bf229bd58e963b (diff)
downloadlua-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua.h b/lua.h
index fe468c8e..6aa184d1 100644
--- a/lua.h
+++ b/lua.h
@@ -333,7 +333,7 @@ LUA_API size_t (lua_stringtonumber) (lua_State *L, const char *s);
333LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud); 333LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud);
334LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud); 334LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud);
335 335
336LUA_API void (lua_toclose) (lua_State *L); 336LUA_API void (lua_toclose) (lua_State *L, int idx);
337 337
338 338
339/* 339/*