diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-10-05 13:44:33 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-10-05 13:44:33 -0300 |
commit | a5382b763c2faa4c47e55ee0e49889b4c47daac4 (patch) | |
tree | d5f4ea49f2343593ced46ce303783baf0cb2cd56 /ltests.c | |
parent | ba21aa8b2b29f516f1f488f996fc899c62f7105b (diff) | |
download | lua-a5382b763c2faa4c47e55ee0e49889b4c47daac4.tar.gz lua-a5382b763c2faa4c47e55ee0e49889b4c47daac4.tar.bz2 lua-a5382b763c2faa4c47e55ee0e49889b4c47daac4.zip |
new function lua_copy
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 | } |