new API function 'lua_rotate'

This commit is contained in:
Roberto Ierusalimschy
2014-05-13 16:40:28 -03:00
parent 45c430eac0
commit 5a5a834975
4 changed files with 36 additions and 26 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: ltests.c,v 2.168 2014/04/14 18:42:44 roberto Exp roberto $
** $Id: ltests.c,v 2.169 2014/05/08 19:08:46 roberto Exp roberto $
** Internal Module for Debugging of the Lua Implementation
** See Copyright Notice in lua.h
*/
@@ -1215,6 +1215,10 @@ static int runC (lua_State *L, lua_State *L1, const char *pc) {
}
return n;
}
else if EQ("rotate") {
int i = getindex;
lua_rotate(L1, i, getnum);
}
else if EQ("setfield") {
int t = getindex;
lua_setfield(L1, t, getstring);