MCPcopy Create free account
hub / github.com/danomatika/ofxLua / luaD_protectedparser

Function luaD_protectedparser

libs/lua/ldo.c:1005–1022  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1003
1004
1005int luaD_protectedparser (lua_State *L, ZIO *z, const char *name,
1006 const char *mode) {
1007 struct SParser p;
1008 int status;
1009 incnny(L); /* cannot yield during parsing */
1010 p.z = z; p.name = name; p.mode = mode;
1011 p.dyd.actvar.arr = NULL; p.dyd.actvar.size = 0;
1012 p.dyd.gt.arr = NULL; p.dyd.gt.size = 0;
1013 p.dyd.label.arr = NULL; p.dyd.label.size = 0;
1014 luaZ_initbuffer(L, &p.buff);
1015 status = luaD_pcall(L, f_parser, &p, savestack(L, L->top.p), L->errfunc);
1016 luaZ_freebuffer(L, &p.buff);
1017 luaM_freearray(L, p.dyd.actvar.arr, p.dyd.actvar.size);
1018 luaM_freearray(L, p.dyd.gt.arr, p.dyd.gt.size);
1019 luaM_freearray(L, p.dyd.label.arr, p.dyd.label.size);
1020 decnny(L);
1021 return status;
1022}
1023
1024

Callers 1

lua_loadFunction · 0.85

Calls 1

luaD_pcallFunction · 0.85

Tested by

no test coverage detected