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

Function luaD_protectedparser

ThirdParty/lua/lua/ldo.c:698–715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696
697
698int luaD_protectedparser (lua_State *L, ZIO *z, const char *name,
699 const char *mode) {
700 struct SParser p;
701 int status;
702 L->nny++; /* cannot yield during parsing */
703 p.z = z; p.name = name; p.mode = mode;
704 p.dyd.actvar.arr = NULL; p.dyd.actvar.size = 0;
705 p.dyd.gt.arr = NULL; p.dyd.gt.size = 0;
706 p.dyd.label.arr = NULL; p.dyd.label.size = 0;
707 luaZ_initbuffer(L, &p.buff);
708 status = luaD_pcall(L, f_parser, &p, savestack(L, L->top), L->errfunc);
709 luaZ_freebuffer(L, &p.buff);
710 luaM_freearray(L, p.dyd.actvar.arr, p.dyd.actvar.size);
711 luaM_freearray(L, p.dyd.gt.arr, p.dyd.gt.size);
712 luaM_freearray(L, p.dyd.label.arr, p.dyd.label.size);
713 L->nny--;
714 return status;
715}
716
717

Callers 1

lua_loadFunction · 0.85

Calls 1

luaD_pcallFunction · 0.85

Tested by

no test coverage detected