aboutsummaryrefslogtreecommitdiff
path: root/ltm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-10-11 18:41:21 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-10-11 18:41:21 -0300
commit0c3ea96541525c5e347f1072ac2659f010e2ec34 (patch)
tree7d67e22b34a3422465c3dd7ca066fd44cd1aa643 /ltm.c
parentbabaa96eab3a5419889b393424db14377f581a69 (diff)
downloadlua-0c3ea96541525c5e347f1072ac2659f010e2ec34.tar.gz
lua-0c3ea96541525c5e347f1072ac2659f010e2ec34.tar.bz2
lua-0c3ea96541525c5e347f1072ac2659f010e2ec34.zip
no more copytagmethod function
Diffstat (limited to 'ltm.c')
-rw-r--r--ltm.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/ltm.c b/ltm.c
index 57c0df28..a58934fa 100644
--- a/ltm.c
+++ b/ltm.c
@@ -108,20 +108,6 @@ static void checktag (lua_State *L, int tag) {
108} 108}
109 109
110 110
111LUA_API int lua_copytagmethods (lua_State *L, int tagto, int tagfrom) {
112 int e;
113 lua_lock(L);
114 checktag(L, tagto);
115 checktag(L, tagfrom);
116 for (e=0; e<TM_N; e++) {
117 if (luaT_validevent(tagto, e))
118 luaT_gettm(G(L), tagto, e) = luaT_gettm(G(L), tagfrom, e);
119 }
120 lua_unlock(L);
121 return tagto;
122}
123
124
125int luaT_tag (const TObject *o) { 111int luaT_tag (const TObject *o) {
126 int t = ttype(o); 112 int t = ttype(o);
127 switch (t) { 113 switch (t) {