From 1bd70a8e40a8600658c706d5f171138e9b902aba Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 8 May 2014 10:52:20 -0300 Subject: new function 'lua_isyieldable' (and 'coroutine.isyieldable') --- lua.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lua.h') diff --git a/lua.h b/lua.h index bef5ff29..464d3717 100644 --- a/lua.h +++ b/lua.h @@ -1,5 +1,5 @@ /* -** $Id: lua.h,v 1.303 2014/05/01 18:18:06 roberto Exp roberto $ +** $Id: lua.h,v 1.304 2014/05/01 18:21:32 roberto Exp roberto $ ** Lua - A Scripting Language ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) ** 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, #define lua_yield(L,n) lua_yieldk(L, (n), 0, NULL) LUA_API int (lua_resume) (lua_State *L, lua_State *from, int narg); LUA_API int (lua_status) (lua_State *L); +LUA_API int lua_isyieldable (lua_State *L); + /* ** garbage-collection function and options -- cgit v1.2.3-55-g6feb