From b8fed93215a23a3f443c5b0126f0de1725771b44 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 7 Nov 2018 10:03:05 -0200 Subject: New syntax for to-be-closed variables The new syntax is . 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'). --- lapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lapi.c') diff --git a/lapi.c b/lapi.c index 4fef43b7..91a6e389 100644 --- a/lapi.c +++ b/lapi.c @@ -1207,7 +1207,7 @@ LUA_API int lua_next (lua_State *L, int idx) { } -LUA_API void lua_tobeclosed (lua_State *L) { +LUA_API void lua_toclose (lua_State *L) { int nresults = L->ci->nresults; luaF_newtbcupval(L, L->top - 1); /* create new to-be-closed upvalue */ if (!hastocloseCfunc(nresults)) /* function not marked yet? */ -- cgit v1.2.3-55-g6feb