src/test/backtrace.h
author Tero Marttila <terom@fixme.fi>
Wed, 27 May 2009 23:57:48 +0300
branchnew-lib-errors
changeset 217 7728d6ec3abf
parent 189 f351facab1f0
permissions -rw-r--r--
nexus.c compiles
#ifndef TEST_BACKTRACE_H
#define TEST_BACKTRACE_H

/**
 * Maximum depth of a backtrace
 */
#define TEST_BACKTRACE_MAX 64

/**
 * Dump out a backtrace via log_debug.
 *
 * The backtrace will exclude the \a skip highest levels of the backtrace. This should usually be at least one to not show the
 * call to test_backtrace itself.
 *
 * At most TEST_BACKTRACE_MAX levels of the stack will be printed (this limit includes skip).
 */
void test_backtrace (int skip);

#endif /* TEST_BACKTRACE_H */