|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
-** $Id: lua.h,v 1.232 2009/02/18 17:20:56 roberto Exp roberto $
|
|
|
+** $Id: lua.h,v 1.233 2009/03/10 17:14:37 roberto Exp roberto $
|
|
|
** Lua - An Extensible Extension Language
|
|
|
** Lua.org, PUC-Rio, Brazil (http://www.lua.org)
|
|
|
** See Copyright Notice at the end of this file
|
|
@@ -203,8 +203,11 @@ LUA_API int (lua_setfenv) (lua_State *L, int idx);
|
|
|
/*
|
|
|
** 'load' and 'call' functions (load and run Lua code)
|
|
|
*/
|
|
|
-LUA_API void (lua_callcont) (lua_State *L, int nargs, int nresults,
|
|
|
- lua_CFunction cont);
|
|
|
+LUA_API void (lua_callk) (lua_State *L, int nargs, int nresults, int ctx,
|
|
|
+ lua_CFunction k);
|
|
|
+#define lua_call(L,n,r) lua_callk(L, (n), (r), 0, NULL)
|
|
|
+
|
|
|
+LUA_API int (lua_getctx) (lua_State *L, int *ctx);
|
|
|
|
|
|
LUA_API int (lua_pcall) (lua_State *L, int nargs, int nresults, int errfunc);
|
|
|
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);
|
|
|
|
|
|
#define lua_tostring(L,i) lua_tolstring(L, (i), NULL)
|
|
|
|
|
|
-#define lua_call(L,n,r) lua_callcont(L, (n), (r), NULL);
|
|
|
-
|
|
|
|
|
|
|
|
|
/*
|