aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-12-13 13:07:53 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-12-13 13:07:53 -0200
commitfdc25a1ebfe9968dcec390dd556375105aa0be40 (patch)
tree43759131636a501ec92475d453fd1a1c73bc8090 /lua.h
parent3b06f983ae0e57b90cdeb500c84bb524e5c3635b (diff)
downloadlua-fdc25a1ebfe9968dcec390dd556375105aa0be40.tar.gz
lua-fdc25a1ebfe9968dcec390dd556375105aa0be40.tar.bz2
lua-fdc25a1ebfe9968dcec390dd556375105aa0be40.zip
New functions 'lua_resetthread' and 'coroutine.kill'
New functions to reset/kill a thread/coroutine, mainly (only?) to close any pending to-be-closed variable. ('lua_resetthread' also allows a thread to be reused...)
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lua.h b/lua.h
index 6aa184d1..95ce5a2e 100644
--- a/lua.h
+++ b/lua.h
@@ -147,6 +147,7 @@ extern const char lua_ident[];
147LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud); 147LUA_API lua_State *(lua_newstate) (lua_Alloc f, void *ud);
148LUA_API void (lua_close) (lua_State *L); 148LUA_API void (lua_close) (lua_State *L);
149LUA_API lua_State *(lua_newthread) (lua_State *L); 149LUA_API lua_State *(lua_newthread) (lua_State *L);
150LUA_API int (lua_resetthread) (lua_State *L);
150 151
151LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf); 152LUA_API lua_CFunction (lua_atpanic) (lua_State *L, lua_CFunction panicf);
152 153