2001-02-19 04:29:00 -08:00
|
|
|
#ifndef _backtrace_
|
|
|
|
#define _backtrace_
|
|
|
|
|
|
|
|
#include "mlvalues.h"
|
|
|
|
|
2001-08-28 07:47:48 -07:00
|
|
|
CAMLextern int backtrace_active;
|
|
|
|
CAMLextern int backtrace_pos;
|
|
|
|
CAMLextern code_t * backtrace_buffer;
|
2001-11-26 04:47:03 -08:00
|
|
|
CAMLextern value backtrace_last_exn;
|
2001-02-19 04:29:00 -08:00
|
|
|
|
2001-11-26 04:47:03 -08:00
|
|
|
extern void init_backtrace(void);
|
|
|
|
extern void stash_backtrace(value exn, code_t pc, value * sp);
|
2001-08-28 07:47:48 -07:00
|
|
|
CAMLextern void print_exception_backtrace(void);
|
2001-02-19 04:29:00 -08:00
|
|
|
|
|
|
|
#endif
|