From 5a5a834975d135054e803b90711fcb9deb6511b8 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 13 May 2014 16:40:28 -0300 Subject: new API function 'lua_rotate' --- ltests.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index e5d72650..cc1f72e5 100644 --- a/ltests.c +++ b/ltests.c @@ -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); -- cgit v1.2.3-55-g6feb