|
#ifndef __BACKTRACE_H__
|
|
#define __BACKTRACE_H__
|
|
|
|
#include <stdlib.h> // For size_t
|
|
|
|
/* Fancier backtrace facility.
|
|
*/
|
|
void spew_backtrace(size_t spew_level);
|
|
void spew_stored_backtrace(void *const*ptrs,
|
|
// This is an int, rather than a size_t because
|
|
// I cannot ASSERT that nelem fits in an int
|
|
// inside the spew code.
|
|
int nelem,
|
|
size_t spew_level);
|
|
|
|
#endif // !__SPEW_H__
|