MCPcopy Create free account
hub / github.com/axmolengine/axmol / reader

Function reader

3rdparty/lua/plainlua/luac.c:126–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124#define FUNCTION "(function()end)();\n"
125
126static const char* reader(lua_State* L, void* ud, size_t* size)
127{
128 UNUSED(L);
129 if ((*(int*)ud)--)
130 {
131 *size=sizeof(FUNCTION)-1;
132 return FUNCTION;
133 }
134 else
135 {
136 *size=0;
137 return NULL;
138 }
139}
140
141#define toproto(L,i) getproto(s2v(L->top.p+(i)))
142

Callers 1

lua_loadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected