** Get the value of 'var' in a register and generate an opcode to check ** whether that register is nil. 'k' is the index of the variable name ** in the list of constants. If its value cannot be encoded in Bx, a 0 ** will use '?' for the name. */
| 713 | ** will use '?' for the name. |
| 714 | */ |
| 715 | void luaK_codecheckglobal (FuncState *fs, expdesc *var, int k, int line) { |
| 716 | luaK_exp2anyreg(fs, var); |
| 717 | luaK_fixline(fs, line); |
| 718 | k = (k >= MAXARG_Bx) ? 0 : k + 1; |
| 719 | luaK_codeABx(fs, OP_ERRNNIL, var->u.info, k); |
| 720 | luaK_fixline(fs, line); |
| 721 | freeexp(fs, var); |
| 722 | } |
| 723 | |
| 724 | |
| 725 | /* |
no test coverage detected