mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
'isIT'/'isOT' turned from macros to functions
This commit is contained in:
parent
9904c253da
commit
6ac7219da3
6 changed files with 38 additions and 14 deletions
4
lcode.c
4
lcode.c
|
|
@ -1844,7 +1844,9 @@ void luaK_finish (FuncState *fs) {
|
|||
Proto *p = fs->f;
|
||||
for (i = 0; i < fs->pc; i++) {
|
||||
Instruction *pc = &p->code[i];
|
||||
lua_assert(i == 0 || isOT(*(pc - 1)) == isIT(*pc));
|
||||
/* avoid "not used" warnings when assert is off (for 'onelua.c') */
|
||||
(void)luaP_isOT; (void)luaP_isIT;
|
||||
lua_assert(i == 0 || luaP_isOT(*(pc - 1)) == luaP_isIT(*pc));
|
||||
switch (GET_OPCODE(*pc)) {
|
||||
case OP_RETURN0: case OP_RETURN1: {
|
||||
if (!(fs->needclose || (p->flag & PF_ISVARARG)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue