MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / main

Function main

lua/lua.c:375–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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