2 ** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 ** Distributed under the terms of the Haiku License.
17 extern char *__progname
;
21 __assert_fail(const char *assertion
, const char *file
,
22 unsigned int line
, const char *function
)
24 fprintf(stderr
, "%s: %s:%d:%s: %s\n", __progname
, file
, line
, function
, assertion
);
30 __assert_perror_fail(int error
, const char *file
,
31 unsigned int line
, const char *function
)
33 fprintf(stderr
, "%s: %s:%d:%s: %s\n", __progname
, file
, line
, function
, strerror(error
));
34 debugger(strerror(error
));