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'). --- ltests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index aba44b87..192ae861 100644 --- a/ltests.c +++ b/ltests.c @@ -1550,8 +1550,8 @@ static struct X { int x; } x; int i = getindex; return lua_yieldk(L1, nres, i, Cfunck); } - else if EQ("tobeclosed") { - lua_tobeclosed(L); + else if EQ("toclose") { + lua_toclose(L); } else luaL_error(L, "unknown instruction %s", buff); } -- cgit v1.2.3-55-g6feb