diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-04-08 15:04:33 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-04-08 15:04:33 -0300 |
commit | 70a63fa5adfb2480ce385502f1d0306000217690 (patch) | |
tree | bcf7b3e8ac2c1c995a5bbc83678d1be7e6eef62c /lua.h | |
parent | fffbaede758abe3b460621962113c352dbd7c605 (diff) | |
download | lua-70a63fa5adfb2480ce385502f1d0306000217690.tar.gz lua-70a63fa5adfb2480ce385502f1d0306000217690.tar.bz2 lua-70a63fa5adfb2480ce385502f1d0306000217690.zip |
first implementation of yieldable 'pcall'
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 | ||
210 | LUA_API int (lua_getctx) (lua_State *L, int *ctx); | 210 | LUA_API int (lua_getctx) (lua_State *L, int *ctx); |
211 | 211 | ||
212 | LUA_API int (lua_pcall) (lua_State *L, int nargs, int nresults, int errfunc); | 212 | LUA_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 | |||
213 | LUA_API int (lua_cpcall) (lua_State *L, lua_CFunction func, void *ud); | 216 | LUA_API int (lua_cpcall) (lua_State *L, lua_CFunction func, void *ud); |
214 | LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt, | 217 | LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt, |
215 | const char *chunkname); | 218 | const char *chunkname); |