diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-03-23 11:26:12 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-03-23 11:26:12 -0300 |
| commit | 6d0ae11c576106b490a53215c3f227b65ace2776 (patch) | |
| tree | fcb09763cf7f81036ed277e65dc5c967d77deef4 /lua.h | |
| parent | 3ca739b418243544ecc1098e34c71f2378bad915 (diff) | |
| download | lua-6d0ae11c576106b490a53215c3f227b65ace2776.tar.gz lua-6d0ae11c576106b490a53215c3f227b65ace2776.tar.bz2 lua-6d0ae11c576106b490a53215c3f227b65ace2776.zip | |
'context' added to suspendable calls
Diffstat (limited to 'lua.h')
| -rw-r--r-- | lua.h | 11 |
1 files changed, 6 insertions, 5 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lua.h,v 1.232 2009/02/18 17:20:56 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.233 2009/03/10 17:14:37 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 |
| @@ -203,8 +203,11 @@ LUA_API int (lua_setfenv) (lua_State *L, int idx); | |||
| 203 | /* | 203 | /* |
| 204 | ** 'load' and 'call' functions (load and run Lua code) | 204 | ** 'load' and 'call' functions (load and run Lua code) |
| 205 | */ | 205 | */ |
| 206 | LUA_API void (lua_callcont) (lua_State *L, int nargs, int nresults, | 206 | LUA_API void (lua_callk) (lua_State *L, int nargs, int nresults, int ctx, |
| 207 | lua_CFunction cont); | 207 | lua_CFunction k); |
| 208 | #define lua_call(L,n,r) lua_callk(L, (n), (r), 0, NULL) | ||
| 209 | |||
| 210 | LUA_API int (lua_getctx) (lua_State *L, int *ctx); | ||
| 208 | 211 | ||
| 209 | LUA_API int (lua_pcall) (lua_State *L, int nargs, int nresults, int errfunc); | 212 | LUA_API int (lua_pcall) (lua_State *L, int nargs, int nresults, int errfunc); |
| 210 | LUA_API int (lua_cpcall) (lua_State *L, lua_CFunction func, void *ud); | 213 | LUA_API int (lua_cpcall) (lua_State *L, lua_CFunction func, void *ud); |
| @@ -283,8 +286,6 @@ LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud); | |||
| 283 | 286 | ||
| 284 | #define lua_tostring(L,i) lua_tolstring(L, (i), NULL) | 287 | #define lua_tostring(L,i) lua_tolstring(L, (i), NULL) |
| 285 | 288 | ||
| 286 | #define lua_call(L,n,r) lua_callcont(L, (n), (r), NULL); | ||
| 287 | |||
| 288 | 289 | ||
| 289 | 290 | ||
| 290 | /* | 291 | /* |
