| 6304 | //----------------------------------------------------------------------------------- |
| 6305 | |
| 6306 | int main(int argc, const char** argv) |
| 6307 | { |
| 6308 | #ifdef _WIN32 |
| 6309 | SetConsoleOutputCP(CP_UTF8); |
| 6310 | #endif |
| 6311 | |
| 6312 | #if CLEAR_WIN32_CONSOLE |
| 6313 | clear_console(); |
| 6314 | fmt_printf("{}\n", argv[0]); |
| 6315 | #endif |
| 6316 | |
| 6317 | #if defined(DEBUG) || defined(_DEBUG) |
| 6318 | printf("DEBUG or _DEBUG defined\n"); |
| 6319 | #endif |
| 6320 | #if !defined(NDEBUG) |
| 6321 | printf("NDEBUG is NOT defined\n"); |
| 6322 | #endif |
| 6323 | #if USING_ASAN |
| 6324 | printf("Address sanitizer enabled\n"); |
| 6325 | #endif |
| 6326 | |
| 6327 | int status = EXIT_FAILURE; |
| 6328 | |
| 6329 | #if BASISU_CATCH_EXCEPTIONS |
| 6330 | try |
| 6331 | { |
| 6332 | status = main_internal(argc, argv); |
| 6333 | } |
| 6334 | catch (const std::exception &exc) |
| 6335 | { |
| 6336 | fprintf(stderr, "Fatal error: Caught exception \"%s\"\n", exc.what()); |
| 6337 | } |
| 6338 | catch (...) |
| 6339 | { |
| 6340 | fprintf(stderr, "Fatal error: Uncaught exception!\n"); |
| 6341 | } |
| 6342 | #else |
| 6343 | status = main_internal(argc, argv); |
| 6344 | #endif |
| 6345 | |
| 6346 | return status; |
| 6347 | } |
| 6348 |
nothing calls this directly
no test coverage detected