6 * SPU specific assert: just directly call exit(6), and use fprintf. That
7 * way we do not pull in the abort, signal.o code, nor (the likely
8 * otherwise unused) fiprintf.
11 /* func can be NULL, in which case no function information is given. */
13 __assert_func (const char *file
,
16 const char *failedexpr
)
19 "assertion \"%s\" failed: file \"%s\", line %d%s%s\n",
20 failedexpr
, file
, line
,
21 func
? ", function: " : "", func
? func
: "");
23 * On the SPU, we do not have signaling. Previously, standard newlib
24 * abort code was used. That eventually leads to a kill(SIGABRT), and
25 * for SPU too an exit(SIGABRT). SIGABRT was 6, so just use that value
33 __assert (const char *file
,
35 const char *failedexpr
)
37 __assert_func (file
, line
, NULL
, failedexpr
);