wvcrash.h

00001 /* -*- Mode: C++ -*-
00002  * Worldvisions Weaver Software:
00003  *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
00004  *
00005  * Routines to generate a stack backtrace automatically when a program
00006  * crashes.
00007  */
00008 #ifndef __WVCRASH_H
00009 #define __WVCRASH_H
00010 
00011 #include <wvcallback.h>
00012 
00013 typedef WvCallback<void, int> WvCrashCallback;
00014 
00015 void wvcrash_setup(const char *_argv0, const char *_desc = 0);
00016 void wvcrash(int sig);
00017 void wvcrash_add_signal(int sig);
00018 WvCrashCallback wvcrash_set_callback(WvCrashCallback callback);
00019 
00020 // Leave a last will and testament in the WvCrash, if your program dies.
00021 void wvcrash_leave_will(const char *will);
00022 // Read the will back.
00023 const char *wvcrash_read_will();
00024 // Read the assertion back.
00025 const char *wvcrash_read_assert();
00026 
00027 #endif // __WVCRASH_H

Generated on Mon Feb 5 10:54:29 2007 for WvStreams by  doxygen 1.5.1