diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-11 12:48:46 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-11 12:48:46 -0200 |
| commit | 034f16892eb49361ee66f8d89aec26b071c98f57 (patch) | |
| tree | 04c714baf2d60ea84a0cca270aa845faff185380 /ltm.c | |
| parent | c759520bc86c9504ebec58b0de655c93c5010e5f (diff) | |
| download | lua-034f16892eb49361ee66f8d89aec26b071c98f57.tar.gz lua-034f16892eb49361ee66f8d89aec26b071c98f57.tar.bz2 lua-034f16892eb49361ee66f8d89aec26b071c98f57.zip | |
better treatment of MARKs and DEBUG cases.
Diffstat (limited to 'ltm.c')
| -rw-r--r-- | ltm.c | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltm.c,v 1.8 1997/11/19 17:29:23 roberto Exp roberto $ | 2 | ** $Id: ltm.c,v 1.9 1997/11/19 18:16:33 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 | */ |
| @@ -106,8 +106,12 @@ int luaT_efectivetag (TObject *o) | |||
| 106 | } | 106 | } |
| 107 | case LUA_T_ARRAY: | 107 | case LUA_T_ARRAY: |
| 108 | return o->value.a->htag; | 108 | return o->value.a->htag; |
| 109 | case LUA_T_FUNCTION: case LUA_T_MARK: | 109 | case LUA_T_FUNCTION: case LUA_T_MARK: |
| 110 | return o->value.cl->consts[0].ttype; | 110 | return o->value.cl->consts[0].ttype; |
| 111 | #ifdef DEBUG | ||
| 112 | case LUA_T_LINE: case LUA_T_PROTO: case LUA_T_CPROTO: | ||
| 113 | lua_error("internal error"); | ||
| 114 | #endif | ||
| 111 | default: | 115 | default: |
| 112 | return t; | 116 | return t; |
| 113 | } | 117 | } |
