diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-06-27 15:01:57 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-06-27 15:01:57 -0300 |
commit | 6ac7219da31df0238dc33c2d4457f69bfe0c1e79 (patch) | |
tree | c9fc124ed998ea39a6222556bb581817791089de /lcode.c | |
parent | 9904c253da9690728710082cfb94654709ab89e7 (diff) | |
download | lua-6ac7219da31df0238dc33c2d4457f69bfe0c1e79.tar.gz lua-6ac7219da31df0238dc33c2d4457f69bfe0c1e79.tar.bz2 lua-6ac7219da31df0238dc33c2d4457f69bfe0c1e79.zip |
'isIT'/'isOT' turned from macros to functions
Diffstat (limited to 'lcode.c')
-rw-r--r-- | lcode.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1844,7 +1844,9 @@ void luaK_finish (FuncState *fs) { | |||
1844 | Proto *p = fs->f; | 1844 | Proto *p = fs->f; |
1845 | for (i = 0; i < fs->pc; i++) { | 1845 | for (i = 0; i < fs->pc; i++) { |
1846 | Instruction *pc = &p->code[i]; | 1846 | Instruction *pc = &p->code[i]; |
1847 | lua_assert(i == 0 || isOT(*(pc - 1)) == isIT(*pc)); | 1847 | /* avoid "not used" warnings when assert is off (for 'onelua.c') */ |
1848 | (void)luaP_isOT; (void)luaP_isIT; | ||
1849 | lua_assert(i == 0 || luaP_isOT(*(pc - 1)) == luaP_isIT(*pc)); | ||
1848 | switch (GET_OPCODE(*pc)) { | 1850 | switch (GET_OPCODE(*pc)) { |
1849 | case OP_RETURN0: case OP_RETURN1: { | 1851 | case OP_RETURN0: case OP_RETURN1: { |
1850 | if (!(fs->needclose || (p->flag & PF_ISVARARG))) | 1852 | if (!(fs->needclose || (p->flag & PF_ISVARARG))) |