Converted log_failure and fatal to macros (fixes GEN_PANIC not determining correct line or file)

This commit is contained in:
2023-08-08 09:48:50 -04:00
parent ed3246c6b0
commit d2fc1d0a56
5 changed files with 35 additions and 34 deletions

View File

@ -541,6 +541,16 @@ sw str_fmt_file( struct FileInfo* f, char const* fmt, ... )
return res;
}
sw str_fmt( char* str, sw n, char const* fmt, ... )
{
sw res;
va_list va;
va_start( va, fmt );
res = str_fmt_va( str, n, fmt, va );
va_end( va );
return res;
}
sw str_fmt_out_va( char const* fmt, va_list va )
{
return str_fmt_file_va( file_get_standard( EFileStandard_OUTPUT ), fmt, va );