diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-03-10 14:14:37 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-03-10 14:14:37 -0300 |
commit | ba484b9eb16dd62a7c3a5400a66eb952b654d3f0 (patch) | |
tree | 31692ddf85265e5a46eab0cd55a0b0757a225e68 /lua.h | |
parent | f9d015523ef48266cea37e13717c223c16941b23 (diff) | |
download | lua-ba484b9eb16dd62a7c3a5400a66eb952b654d3f0.tar.gz lua-ba484b9eb16dd62a7c3a5400a66eb952b654d3f0.tar.bz2 lua-ba484b9eb16dd62a7c3a5400a66eb952b654d3f0.zip |
yielding across lua_call (first version)
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.231 2008/08/13 14:08:49 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.232 2009/02/18 17:20:56 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,7 +203,9 @@ 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_call) (lua_State *L, int nargs, int nresults); | 206 | LUA_API void (lua_callcont) (lua_State *L, int nargs, int nresults, |
207 | lua_CFunction cont); | ||
208 | |||
207 | LUA_API int (lua_pcall) (lua_State *L, int nargs, int nresults, int errfunc); | 209 | LUA_API int (lua_pcall) (lua_State *L, int nargs, int nresults, int errfunc); |
208 | LUA_API int (lua_cpcall) (lua_State *L, lua_CFunction func, void *ud); | 210 | LUA_API int (lua_cpcall) (lua_State *L, lua_CFunction func, void *ud); |
209 | LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt, | 211 | LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt, |
@@ -281,6 +283,8 @@ LUA_API void (lua_setallocf) (lua_State *L, lua_Alloc f, void *ud); | |||
281 | 283 | ||
282 | #define lua_tostring(L,i) lua_tolstring(L, (i), NULL) | 284 | #define lua_tostring(L,i) lua_tolstring(L, (i), NULL) |
283 | 285 | ||
286 | #define lua_call(L,n,r) lua_callcont(L, (n), (r), NULL); | ||
287 | |||
284 | 288 | ||
285 | 289 | ||
286 | /* | 290 | /* |