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

Function main

deps/lua/src/lua.c:377–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375
376
377int main (int argc, char **argv) {
378 int status;
379 struct Smain s;
380 lua_State *L = lua_open(); /* create state */
381 if (L == NULL) {
382 l_message(argv[0], "cannot create state: not enough memory");
383 return EXIT_FAILURE;
384 }
385 s.argc = argc;
386 s.argv = argv;
387 status = lua_cpcall(L, &pmain, &s);
388 report(L, status);
389 lua_close(L);
390 return (status || s.status) ? EXIT_FAILURE : EXIT_SUCCESS;
391}
392

Callers

nothing calls this directly

Calls 4

l_messageFunction · 0.85
lua_cpcallFunction · 0.85
reportFunction · 0.85
lua_closeFunction · 0.85

Tested by

no test coverage detected