diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-05-08 10:52:20 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-05-08 10:52:20 -0300 |
commit | 1bd70a8e40a8600658c706d5f171138e9b902aba (patch) | |
tree | 9b4408457bbd03a3fda83b21bbf54dba56234d08 /lua.h | |
parent | ef83457427cdb2d9f29d94177131db8e6e2eb606 (diff) | |
download | lua-1bd70a8e40a8600658c706d5f171138e9b902aba.tar.gz lua-1bd70a8e40a8600658c706d5f171138e9b902aba.tar.bz2 lua-1bd70a8e40a8600658c706d5f171138e9b902aba.zip |
new function 'lua_isyieldable' (and 'coroutine.isyieldable')
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.303 2014/05/01 18:18:06 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.304 2014/05/01 18:21:32 roberto Exp roberto $ |
3 | ** Lua - A Scripting Language | 3 | ** Lua - A Scripting Language |
4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) | 4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) |
5 | ** See Copyright Notice at the end of this file | 5 | ** See Copyright Notice at the end of this file |
@@ -282,6 +282,8 @@ LUA_API int (lua_yieldk) (lua_State *L, int nresults, int ctx, | |||
282 | #define lua_yield(L,n) lua_yieldk(L, (n), 0, NULL) | 282 | #define lua_yield(L,n) lua_yieldk(L, (n), 0, NULL) |
283 | LUA_API int (lua_resume) (lua_State *L, lua_State *from, int narg); | 283 | LUA_API int (lua_resume) (lua_State *L, lua_State *from, int narg); |
284 | LUA_API int (lua_status) (lua_State *L); | 284 | LUA_API int (lua_status) (lua_State *L); |
285 | LUA_API int lua_isyieldable (lua_State *L); | ||
286 | |||
285 | 287 | ||
286 | /* | 288 | /* |
287 | ** garbage-collection function and options | 289 | ** garbage-collection function and options |