| 375 | |
| 376 | |
| 377 | int 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 |
nothing calls this directly
no test coverage detected