blob: 030da8cefe3beffe4c8fbcc5ea061b7ce746c539 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/* See LICENSE file for copyright and license details. */
#include "common.h"
#ifndef TEST
#ifndef WITH_BACKTRACE
# if defined(__GNUC__)
# pragma GCC diagnostic ignored "-Wattributes"
# endif
CONST
#endif
void
libtest_dump_stack(const char *prefix, const char *indent)
{
#ifndef WITH_BACKTRACE
(void) prefix;
(void) indent;
#else
libtest_print_backtrace(stderr, prefix, indent, 1u, NULL, NULL);
#endif
}
#else
CONST int
main(void)
{
/* How would one even test this, and what would be the point? */
return 0;
}
#endif
|