mirror of
https://github.com/Ed94/metadesk.git
synced 2026-06-13 07:52:22 -07:00
0ab226f739
They'll be removed on demand in libgen repo
27 lines
642 B
C
27 lines
642 B
C
#ifdef INTELLISENSE_DIRECTIVES
|
|
# include "strings.h"
|
|
# include "debug.h"
|
|
# include "platform.c"
|
|
#endif
|
|
|
|
#define md__printf_err( fmt, ... ) fprintf( stderr, fmt, __VA_ARGS__ )
|
|
#define md__printf_err_va( fmt, va ) vfprintf( stderr, fmt, va )
|
|
|
|
void md_assert_handler( char const* condition, char const* file, char const* function, MD_S32 line, char const* msg, ... )
|
|
{
|
|
md__printf_err( "%s - %s:(%d): Assert Failure: ", file, function, line );
|
|
|
|
if ( condition )
|
|
md__printf_err( "`%s` \n", condition );
|
|
|
|
if ( msg )
|
|
{
|
|
va_list va;
|
|
va_start( va, msg );
|
|
md__printf_err_va( msg, va );
|
|
va_end( va );
|
|
}
|
|
|
|
md__printf_err( "%s", "\n" );
|
|
}
|