diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-29 14:31:15 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-29 14:31:15 -0200 |
commit | 298d0abff7f292fa4bfbdb40979f41bc8f80f9c2 (patch) | |
tree | 457d98c07a17f99a6fee012d49d5191c4c4bf665 /ldo.c | |
parent | 4fbe775154ff281bf9c04cf92d68824a82593402 (diff) | |
download | lua-298d0abff7f292fa4bfbdb40979f41bc8f80f9c2.tar.gz lua-298d0abff7f292fa4bfbdb40979f41bc8f80f9c2.tar.bz2 lua-298d0abff7f292fa4bfbdb40979f41bc8f80f9c2.zip |
first version of extra debug information (NAME)
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 1.60 1999/12/23 18:19:57 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 1.61 1999/12/27 17:33:22 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -13,6 +13,7 @@ | |||
13 | #define LUA_REENTRANT | 13 | #define LUA_REENTRANT |
14 | 14 | ||
15 | #include "lauxlib.h" | 15 | #include "lauxlib.h" |
16 | #include "ldebug.h" | ||
16 | #include "ldo.h" | 17 | #include "ldo.h" |
17 | #include "lgc.h" | 18 | #include "lgc.h" |
18 | #include "lmem.h" | 19 | #include "lmem.h" |
@@ -220,7 +221,7 @@ void luaD_call (lua_State *L, StkId func, int nResults) { | |||
220 | default: { /* `func' is not a function; check the `function' tag method */ | 221 | default: { /* `func' is not a function; check the `function' tag method */ |
221 | const TObject *im = luaT_getimbyObj(L, func, IM_FUNCTION); | 222 | const TObject *im = luaT_getimbyObj(L, func, IM_FUNCTION); |
222 | if (ttype(im) == LUA_T_NIL) | 223 | if (ttype(im) == LUA_T_NIL) |
223 | lua_error(L, "call expression not a function"); | 224 | luaG_callerror(L, func); |
224 | luaD_openstack(L, func); | 225 | luaD_openstack(L, func); |
225 | *func = *im; /* tag method is the new function to be called */ | 226 | *func = *im; /* tag method is the new function to be called */ |
226 | goto retry; /* retry the call (without calling callhook again) */ | 227 | goto retry; /* retry the call (without calling callhook again) */ |