void __aeabi_assert(const char *expr, const char *file, int line) { int size = strlen(expr) + strlen(file) + 38; char *buf = (char *)malloc(size); if (!buf) { _abort_msg("malloc failed in assert"); return; } sprintf(buf,"Assertion failed, (%s), file %s, line %d\n", expr, file, line); _abort_msg(buf); return; }
_CODE_ACCESS void _assert(int expr, const char *string) { #if defined(__TMS320C6X__) && defined(__TI_EABI__) if (!expr) __c6xabi_abort_msg(string); #else if (!expr) _abort_msg(string); #endif }