MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaK_ret

Function luaK_ret

lib/lua/src/lcode.c:207–215  ·  view source on GitHub ↗

** Code a 'return' instruction */

Source from the content-addressed store, hash-verified

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

Callers 2

close_funcFunction · 0.85
retstatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected