00001 #ifndef STACKTRACE_H 00002 #define STACKTRACE_H 00003 #include <stdio.h> 00004 00005 /// function sets name of the program 00006 void set_prgname(const char *name); 00007 /// function prints stack trace to the file out 00008 void stack_trace(FILE *out, long level); 00009 /// function for stack trace in Linux 00010 void lin_stack_trace(FILE *out, long level); 00011 /// function performs name demangling for Watcom compiler 00012 void demangle_watcom(const char *mname, char *dname); 00013 /// function reduces path length of the source file name 00014 char *remove_path_level(char *path, long level); 00015 /// function for stack trace in Windows 00016 void win_stack_trace(FILE *out, long level); 00017 #endif