/* * PROJECT: ReactOS C runtime library * LICENSE: BSD - See COPYING.ARM in the top level directory * FILE: lib/sdk/crt/misc/assert.c * PURPOSE: _assert implementation * PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org) */ #include static const char formatstr[] = "Assertion failed!\n\n" "Program: %s\n" "File: %s\n" "Line: %ld\n\n" "Expression: %s\n" "Press Retry to debug the application\n\0"; void _assert ( const char *exp, const char *file, unsigned line) { char achProgram[MAX_PATH]; char *pszBuffer; size_t len; int iResult; /* First common debug message */ FIXME("Assertion failed: %s, file %s, line %d\n", exp, file, line); /* Check if output should go to stderr */ if (((msvcrt_error_mode == _OUT_TO_DEFAULT) && (__app_type == _CONSOLE_APP)) || (msvcrt_error_mode == _OUT_TO_STDERR)) { /* Print 'Assertion failed: x