aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-05-13 16:40:28 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-05-13 16:40:28 -0300
commit5a5a834975d135054e803b90711fcb9deb6511b8 (patch)
tree9b028d3e480b677192a6da06271f38599cb33569 /ltests.c
parent45c430eac04b070a996437b79e40656942a4c7d4 (diff)
downloadlua-5a5a834975d135054e803b90711fcb9deb6511b8.tar.gz
lua-5a5a834975d135054e803b90711fcb9deb6511b8.tar.bz2
lua-5a5a834975d135054e803b90711fcb9deb6511b8.zip
new API function 'lua_rotate'
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ltests.c b/ltests.c
index e5d72650..cc1f72e5 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 2.168 2014/04/14 18:42:44 roberto Exp roberto $ 2** $Id: ltests.c,v 2.169 2014/05/08 19:08:46 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*/
@@ -1215,6 +1215,10 @@ static int runC (lua_State *L, lua_State *L1, const char *pc) {
1215 } 1215 }
1216 return n; 1216 return n;
1217 } 1217 }
1218 else if EQ("rotate") {
1219 int i = getindex;
1220 lua_rotate(L1, i, getnum);
1221 }
1218 else if EQ("setfield") { 1222 else if EQ("setfield") {
1219 int t = getindex; 1223 int t = getindex;
1220 lua_setfield(L1, t, getstring); 1224 lua_setfield(L1, t, getstring);