aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-11-07 10:03:05 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-11-07 10:03:05 -0200
commitb8fed93215a23a3f443c5b0126f0de1725771b44 (patch)
tree1d7d29388b8a20fb7d0920d94b02a8040612314d /lua.h
parent5e76a4fd313a8690d300085c4e8fcb9dca50c01a (diff)
downloadlua-b8fed93215a23a3f443c5b0126f0de1725771b44.tar.gz
lua-b8fed93215a23a3f443c5b0126f0de1725771b44.tar.bz2
lua-b8fed93215a23a3f443c5b0126f0de1725771b44.zip
New syntax for to-be-closed variables
The new syntax is <local *toclose x = f()>. The mark '*' allows other attributes to be added later without the need of new keywords; it also allows better error messages. The API function was also renamed ('lua_tobeclosed' -> 'lua_toclose').
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 16d685cc..fe468c8e 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_tobeclosed) (lua_State *L); 336LUA_API void (lua_toclose) (lua_State *L);
337 337
338 338
339/* 339/*