FILE *infp = fopen(argv[1], "rb");
if (infp == nullptr) {
perror(argv[1]);
- exit(1);
+ abort();
}
FILE *outfp = fopen(argv[3], "w");
if (outfp == nullptr) {
perror(argv[3]);
- exit(1);
+ abort();
}
fprintf(outfp, "// Generated by bin2h.cpp from %s. Do not edit by hand.\n", argv[1]);