diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-03 10:12:30 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-03 10:12:30 -0200 |
| commit | 54eb35a8aa0f60265cf1b4764beabe1199d66f42 (patch) | |
| tree | 83bc4049d312bdbe0b8e78ed1745839fcf9a5a03 /ltm.c | |
| parent | ba36180fd7b68341ad57e0fbe7a55cdfb334908d (diff) | |
| download | lua-54eb35a8aa0f60265cf1b4764beabe1199d66f42.tar.gz lua-54eb35a8aa0f60265cf1b4764beabe1199d66f42.tar.bz2 lua-54eb35a8aa0f60265cf1b4764beabe1199d66f42.zip | |
more fields moved out of 'CallInfo'
Diffstat (limited to 'ltm.c')
| -rw-r--r-- | ltm.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltm.c,v 2.44 2017/09/27 18:59:08 roberto Exp roberto $ | 2 | ** $Id: ltm.c,v 2.45 2017/10/04 15:49:05 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 | */ |
| @@ -108,7 +108,7 @@ void luaT_callTM (lua_State *L, const TValue *f, const TValue *p1, | |||
| 108 | setobj2s(L, func + 3, p3); /* 3rd argument */ | 108 | setobj2s(L, func + 3, p3); /* 3rd argument */ |
| 109 | L->top += 4; | 109 | L->top += 4; |
| 110 | /* metamethod may yield only when called from Lua code */ | 110 | /* metamethod may yield only when called from Lua code */ |
| 111 | if (isLua(L->ci)) | 111 | if (isLua(L->func)) |
| 112 | luaD_call(L, func, 0); | 112 | luaD_call(L, func, 0); |
| 113 | else | 113 | else |
| 114 | luaD_callnoyield(L, func, 0); | 114 | luaD_callnoyield(L, func, 0); |
| @@ -124,7 +124,7 @@ void luaT_callTMres (lua_State *L, const TValue *f, const TValue *p1, | |||
| 124 | setobj2s(L, func + 2, p2); /* 2nd argument */ | 124 | setobj2s(L, func + 2, p2); /* 2nd argument */ |
| 125 | L->top += 3; | 125 | L->top += 3; |
| 126 | /* metamethod may yield only when called from Lua code */ | 126 | /* metamethod may yield only when called from Lua code */ |
| 127 | if (isLua(L->ci)) | 127 | if (isLua(L->func)) |
| 128 | luaD_call(L, func, 1); | 128 | luaD_call(L, func, 1); |
| 129 | else | 129 | else |
| 130 | luaD_callnoyield(L, func, 1); | 130 | luaD_callnoyield(L, func, 1); |
