MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / luaK_ret

Function luaK_ret

extlibs/lua/src/lcode.c:206–214  ·  view source on GitHub ↗

** Code a 'return' instruction */

Source from the content-addressed store, hash-verified

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

Callers 2

close_funcFunction · 0.85
retstatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected