MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaK_ret

Function luaK_ret

third-party/lua-5.5.0/src/lcode.c:208–217  ·  view source on GitHub ↗

** Code a 'return' instruction */

Source from the content-addressed store, hash-verified

206** Code a 'return' instruction
207*/
208void luaK_ret (FuncState *fs, int first, int nret) {
209 OpCode op;
210 switch (nret) {
211 case 0: op = OP_RETURN0; break;
212 case 1: op = OP_RETURN1; break;
213 default: op = OP_RETURN; break;
214 }
215 luaY_checklimit(fs, nret + 1, MAXARG_B, "returns");
216 luaK_codeABC(fs, op, first, nret + 1, 0);
217}
218
219
220/*

Callers 2

close_funcFunction · 0.70
retstatFunction · 0.70

Calls 2

luaY_checklimitFunction · 0.85
luaK_codeABCFunction · 0.50

Tested by

no test coverage detected