aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-03-10 14:14:37 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-03-10 14:14:37 -0300
commitba484b9eb16dd62a7c3a5400a66eb952b654d3f0 (patch)
tree31692ddf85265e5a46eab0cd55a0b0757a225e68 /lua.h
parentf9d015523ef48266cea37e13717c223c16941b23 (diff)
downloadlua-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.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/lua.h b/lua.h
index 82101882..13d067a5 100644
--- a/lua.h
+++ b/lua.h
@@ -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*/
206LUA_API void (lua_call) (lua_State *L, int nargs, int nresults); 206LUA_API void (lua_callcont) (lua_State *L, int nargs, int nresults,
207 lua_CFunction cont);
208
207LUA_API int (lua_pcall) (lua_State *L, int nargs, int nresults, int errfunc); 209LUA_API int (lua_pcall) (lua_State *L, int nargs, int nresults, int errfunc);
208LUA_API int (lua_cpcall) (lua_State *L, lua_CFunction func, void *ud); 210LUA_API int (lua_cpcall) (lua_State *L, lua_CFunction func, void *ud);
209LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt, 211LUA_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/*