From a5382b763c2faa4c47e55ee0e49889b4c47daac4 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 5 Oct 2009 13:44:33 -0300 Subject: new function lua_copy --- ltests.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index 46730667..40a7f965 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 2.73 2009/09/28 16:32:50 roberto Exp roberto $ +** $Id: ltests.c,v 2.74 2009/09/30 20:49:25 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -971,6 +971,10 @@ static int runC (lua_State *L, lua_State *L1, const char *pc) { else if EQ("replace") { lua_replace(L1, getindex); } + else if EQ("copy") { + int f = getindex; + lua_copy(L1, f, getindex); + } else if EQ("gettable") { lua_gettable(L1, getindex); } -- cgit v1.2.3-55-g6feb