| 184 | } |
| 185 | |
| 186 | int 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 | } |
nothing calls this directly
no test coverage detected