MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / main

Function main

third-party/lua-5.1.5/src/luac.c:186–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186int main(int argc, char* argv[])
187{
188 lua_State* L;
189 struct Smain s;
190 int i=doargs(argc,argv);
191 argc-=i; argv+=i;
192 if (argc<=0) usage("no input files given");
193 L=lua_open();
194 if (L==NULL) fatal("not enough memory for state");
195 s.argc=argc;
196 s.argv=argv;
197 if (lua_cpcall(L,pmain,&s)!=0) fatal(lua_tostring(L,-1));
198 lua_close(L);
199 return EXIT_SUCCESS;
200}

Callers

nothing calls this directly

Calls 5

lua_cpcallFunction · 0.85
doargsFunction · 0.70
usageFunction · 0.70
fatalFunction · 0.70
lua_closeFunction · 0.70

Tested by

no test coverage detected