aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-10-05 13:44:33 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-10-05 13:44:33 -0300
commita5382b763c2faa4c47e55ee0e49889b4c47daac4 (patch)
treed5f4ea49f2343593ced46ce303783baf0cb2cd56 /ltests.c
parentba21aa8b2b29f516f1f488f996fc899c62f7105b (diff)
downloadlua-a5382b763c2faa4c47e55ee0e49889b4c47daac4.tar.gz
lua-a5382b763c2faa4c47e55ee0e49889b4c47daac4.tar.bz2
lua-a5382b763c2faa4c47e55ee0e49889b4c47daac4.zip
new function lua_copy
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 46730667..40a7f965 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 2.73 2009/09/28 16:32:50 roberto Exp roberto $ 2** $Id: ltests.c,v 2.74 2009/09/30 20:49:25 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*/
@@ -971,6 +971,10 @@ static int runC (lua_State *L, lua_State *L1, const char *pc) {
971 else if EQ("replace") { 971 else if EQ("replace") {
972 lua_replace(L1, getindex); 972 lua_replace(L1, getindex);
973 } 973 }
974 else if EQ("copy") {
975 int f = getindex;
976 lua_copy(L1, f, getindex);
977 }
974 else if EQ("gettable") { 978 else if EQ("gettable") {
975 lua_gettable(L1, getindex); 979 lua_gettable(L1, getindex);
976 } 980 }