diff options
Diffstat (limited to 'ltm.c')
| -rw-r--r-- | ltm.c | 14 |
1 files changed, 0 insertions, 14 deletions
| @@ -108,20 +108,6 @@ static void checktag (lua_State *L, int tag) { | |||
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | 110 | ||
| 111 | LUA_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 | |||
| 125 | int luaT_tag (const TObject *o) { | 111 | int luaT_tag (const TObject *o) { |
| 126 | int t = ttype(o); | 112 | int t = ttype(o); |
| 127 | switch (t) { | 113 | switch (t) { |
