MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / open_func

Function open_func

ThirdParty/lua/lua/lparser.c:523–543  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521
522
523static void open_func (LexState *ls, FuncState *fs, BlockCnt *bl) {
524 Proto *f;
525 fs->prev = ls->fs; /* linked list of funcstates */
526 fs->ls = ls;
527 ls->fs = fs;
528 fs->pc = 0;
529 fs->lasttarget = 0;
530 fs->jpc = NO_JUMP;
531 fs->freereg = 0;
532 fs->nk = 0;
533 fs->np = 0;
534 fs->nups = 0;
535 fs->nlocvars = 0;
536 fs->nactvar = 0;
537 fs->firstlocal = ls->dyd->actvar.n;
538 fs->bl = NULL;
539 f = fs->f;
540 f->source = ls->source;
541 f->maxstacksize = 2; /* registers 0/1 are always valid */
542 enterblock(fs, bl, 0);
543}
544
545
546static void close_func (LexState *ls) {

Callers 2

bodyFunction · 0.85
mainfuncFunction · 0.85

Calls 1

enterblockFunction · 0.85

Tested by

no test coverage detected