aboutsummaryrefslogtreecommitdiff
path: root/ldo.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-06-12 11:15:09 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-06-12 11:15:09 -0300
commitfd897027f19288ce2cb0249cb8c1818e2f3f1c4c (patch)
tree7fd131ca204c4100a24157405eda4239d2155a46 /ldo.h
parentd05fe48bfdd89956c0ebd115dca0fb115aa28dd6 (diff)
downloadlua-fd897027f19288ce2cb0249cb8c1818e2f3f1c4c.tar.gz
lua-fd897027f19288ce2cb0249cb8c1818e2f3f1c4c.tar.bz2
lua-fd897027f19288ce2cb0249cb8c1818e2f3f1c4c.zip
A coroutine can close itself
A call to close itself will close all its to-be-closed variables and return to the resume that (re)started the coroutine.
Diffstat (limited to 'ldo.h')
-rw-r--r--ldo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ldo.h b/ldo.h
index 465f4fb8..2d4ca8be 100644
--- a/ldo.h
+++ b/ldo.h
@@ -91,6 +91,7 @@ LUAI_FUNC void luaD_shrinkstack (lua_State *L);
91LUAI_FUNC void luaD_inctop (lua_State *L); 91LUAI_FUNC void luaD_inctop (lua_State *L);
92 92
93LUAI_FUNC l_noret luaD_throw (lua_State *L, TStatus errcode); 93LUAI_FUNC l_noret luaD_throw (lua_State *L, TStatus errcode);
94LUAI_FUNC l_noret luaD_throwbaselevel (lua_State *L, TStatus errcode);
94LUAI_FUNC TStatus luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud); 95LUAI_FUNC TStatus luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud);
95 96
96#endif 97#endif