src/test/backtrace.h
author Tero Marttila <terom@fixme.fi>
Thu, 21 May 2009 16:57:56 +0300
changeset 213 f0e52e026197
parent 189 f351facab1f0
permissions -rw-r--r--
implement lua_console_on_interrupt to abort any executing thread
#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 */