aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-07-17 10:53:37 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-07-17 10:53:37 -0300
commit1aa4f69b51a92dc4f5c9d35925b9977d35650679 (patch)
treed63d6534a52452d1c9f4f0c0e6210f4c0435f769 /ltests.c
parent8bb272a3e3d0693a1d587cfa3469153978ae617f (diff)
downloadlua-1aa4f69b51a92dc4f5c9d35925b9977d35650679.tar.gz
lua-1aa4f69b51a92dc4f5c9d35925b9977d35650679.tar.bz2
lua-1aa4f69b51a92dc4f5c9d35925b9977d35650679.zip
new type 'lua_Ctx' for continuation-function contexts (to allow type
to be configurable)
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ltests.c b/ltests.c
index d6474335..803b3be2 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 2.174 2014/06/26 17:25:11 roberto Exp roberto $ 2** $Id: ltests.c,v 2.175 2014/07/16 14:51:36 roberto Exp roberto $
3** Internal Module for Debugging of the Lua Implementation 3** Internal Module for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -981,7 +981,7 @@ static void pushcode (lua_State *L, int code) {
981 981
982 982
983static int testC (lua_State *L); 983static int testC (lua_State *L);
984static int Cfunck (lua_State *L, int status, int ctx); 984static int Cfunck (lua_State *L, int status, lua_Ctx ctx);
985 985
986/* 986/*
987** arithmetic operation encoding for 'arith' instruction 987** arithmetic operation encoding for 'arith' instruction
@@ -1318,7 +1318,7 @@ static int Cfunc (lua_State *L) {
1318} 1318}
1319 1319
1320 1320
1321static int Cfunck (lua_State *L, int status, int ctx) { 1321static int Cfunck (lua_State *L, int status, lua_Ctx ctx) {
1322 pushcode(L, status); 1322 pushcode(L, status);
1323 lua_setglobal(L, "status"); 1323 lua_setglobal(L, "status");
1324 lua_pushinteger(L, ctx); 1324 lua_pushinteger(L, ctx);