summaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-04-08 15:04:33 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-04-08 15:04:33 -0300
commit70a63fa5adfb2480ce385502f1d0306000217690 (patch)
treebcf7b3e8ac2c1c995a5bbc83678d1be7e6eef62c /lua.h
parentfffbaede758abe3b460621962113c352dbd7c605 (diff)
downloadlua-70a63fa5adfb2480ce385502f1d0306000217690.tar.gz
lua-70a63fa5adfb2480ce385502f1d0306000217690.tar.bz2
lua-70a63fa5adfb2480ce385502f1d0306000217690.zip
first implementation of yieldable 'pcall'
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lua.h b/lua.h
index e9d0785b..a55e62b6 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.233 2009/03/10 17:14:37 roberto Exp roberto $ 2** $Id: lua.h,v 1.234 2009/03/23 14:26:12 roberto Exp roberto $
3** Lua - An Extensible Extension Language 3** Lua - An Extensible Extension 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
@@ -209,7 +209,10 @@ LUA_API void (lua_callk) (lua_State *L, int nargs, int nresults, int ctx,
209 209
210LUA_API int (lua_getctx) (lua_State *L, int *ctx); 210LUA_API int (lua_getctx) (lua_State *L, int *ctx);
211 211
212LUA_API int (lua_pcall) (lua_State *L, int nargs, int nresults, int errfunc); 212LUA_API int (lua_pcallk) (lua_State *L, int nargs, int nresults, int errfunc,
213 int ctx, lua_CFunction k);
214#define lua_pcall(L,n,r,f) lua_pcallk(L, (n), (r), (f), 0, NULL)
215
213LUA_API int (lua_cpcall) (lua_State *L, lua_CFunction func, void *ud); 216LUA_API int (lua_cpcall) (lua_State *L, lua_CFunction func, void *ud);
214LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt, 217LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt,
215 const char *chunkname); 218 const char *chunkname);