diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-06-02 16:31:40 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-06-02 16:31:40 -0300 |
| commit | 3b44821334a1aa387c13eaf3cd23a2344091cbc7 (patch) | |
| tree | 7070ed226b6db26ae82f99d94138465a95b0d7fc /ltm.c | |
| parent | 0214dab989396de05567f293e6aa909ee2ffbac1 (diff) | |
| download | lua-3b44821334a1aa387c13eaf3cd23a2344091cbc7.tar.gz lua-3b44821334a1aa387c13eaf3cd23a2344091cbc7.tar.bz2 lua-3b44821334a1aa387c13eaf3cd23a2344091cbc7.zip | |
stricter control (using tag variants) over closure kinds (Lua x C)
Diffstat (limited to 'ltm.c')
| -rw-r--r-- | ltm.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltm.c,v 2.12 2010/04/13 20:48:12 roberto Exp roberto $ | 2 | ** $Id: ltm.c,v 2.13 2011/02/28 17:32:10 roberto Exp roberto $ |
| 3 | ** Tag methods | 3 | ** Tag methods |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -62,7 +62,7 @@ const TValue *luaT_gettm (Table *events, TMS event, TString *ename) { | |||
| 62 | 62 | ||
| 63 | const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, TMS event) { | 63 | const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, TMS event) { |
| 64 | Table *mt; | 64 | Table *mt; |
| 65 | switch (ttype(o)) { | 65 | switch (ttypenv(o)) { |
| 66 | case LUA_TTABLE: | 66 | case LUA_TTABLE: |
| 67 | mt = hvalue(o)->metatable; | 67 | mt = hvalue(o)->metatable; |
| 68 | break; | 68 | break; |
