summaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/lua.h b/lua.h
index 91e560af..8ac6991e 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.311 2014/07/24 14:00:16 roberto Exp roberto $ 2** $Id: lua.h,v 1.312 2014/07/31 13:44:30 roberto Exp roberto $
3** Lua - A Scripting Language 3** Lua - A Scripting 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
@@ -94,7 +94,7 @@ typedef LUA_INTEGER lua_Integer;
94typedef LUA_UNSIGNED lua_Unsigned; 94typedef LUA_UNSIGNED lua_Unsigned;
95 95
96/* type for continuation-function contexts */ 96/* type for continuation-function contexts */
97typedef LUA_CTXT lua_Ctx; 97typedef LUA_KCONTEXT lua_Kcontext;
98 98
99 99
100/* 100/*
@@ -105,7 +105,7 @@ typedef int (*lua_CFunction) (lua_State *L);
105/* 105/*
106** Type for continuation functions 106** Type for continuation functions
107*/ 107*/
108typedef int (*lua_KFunction) (lua_State *L, int status, lua_Ctx ctx); 108typedef int (*lua_KFunction) (lua_State *L, int status, lua_Kcontext ctx);
109 109
110 110
111/* 111/*
@@ -265,12 +265,12 @@ LUA_API void (lua_setuservalue) (lua_State *L, int idx);
265/* 265/*
266** 'load' and 'call' functions (load and run Lua code) 266** 'load' and 'call' functions (load and run Lua code)
267*/ 267*/
268LUA_API void (lua_callk) (lua_State *L, int nargs, int nresults, lua_Ctx ctx, 268LUA_API void (lua_callk) (lua_State *L, int nargs, int nresults,
269 lua_KFunction k); 269 lua_Kcontext ctx, lua_KFunction k);
270#define lua_call(L,n,r) lua_callk(L, (n), (r), 0, NULL) 270#define lua_call(L,n,r) lua_callk(L, (n), (r), 0, NULL)
271 271
272LUA_API int (lua_pcallk) (lua_State *L, int nargs, int nresults, int errfunc, 272LUA_API int (lua_pcallk) (lua_State *L, int nargs, int nresults, int errfunc,
273 lua_Ctx ctx, lua_KFunction k); 273 lua_Kcontext ctx, lua_KFunction k);
274#define lua_pcall(L,n,r,f) lua_pcallk(L, (n), (r), (f), 0, NULL) 274#define lua_pcall(L,n,r,f) lua_pcallk(L, (n), (r), (f), 0, NULL)
275 275
276LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt, 276LUA_API int (lua_load) (lua_State *L, lua_Reader reader, void *dt,
@@ -283,7 +283,7 @@ LUA_API int (lua_dump) (lua_State *L, lua_Writer writer, void *data, int strip);
283/* 283/*
284** coroutine functions 284** coroutine functions
285*/ 285*/
286LUA_API int (lua_yieldk) (lua_State *L, int nresults, lua_Ctx ctx, 286LUA_API int (lua_yieldk) (lua_State *L, int nresults, lua_Kcontext ctx,
287 lua_KFunction k); 287 lua_KFunction k);
288#define lua_yield(L,n) lua_yieldk(L, (n), 0, NULL) 288#define lua_yield(L,n) lua_yieldk(L, (n), 0, NULL)
289LUA_API int (lua_resume) (lua_State *L, lua_State *from, int narg); 289LUA_API int (lua_resume) (lua_State *L, lua_State *from, int narg);