aboutsummaryrefslogtreecommitdiffstats
path: root/libtest/libtest_dump_stack.c
blob: ca0c9c734b552daa0affbe2906df96175f2db53a (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
/* 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 *indent)
{
#ifndef WITH_BACKTRACE
	(void) indent;
#else
	libtest_print_backtrace(stderr, indent, 1u, NULL);
#endif
}


#else


CONST int
main(void)
{
	/* How would one even test this, and what would be the point? */
	return 0;
}


#endif