MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / main

Function main

deps/lua/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

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

Tested by

no test coverage detected