00001
00002
00003
00004
00005
00006
00007
00008 #include "wvassert.h"
00009
00010 WvCrashWill::WvCrashWill(const char *will)
00011 : old_will(wvcrash_read_will())
00012 {
00013 wvcrash_leave_will(will);
00014 }
00015
00016 WvCrashWill::WvCrashWill(WVSTRING_FORMAT_DEFN)
00017 : old_will(wvcrash_read_will())
00018 {
00019
00020
00021
00022 wvcrash_leave_will(WvFastString(WVSTRING_FORMAT_CALL));
00023 }
00024
00025 void WvCrashWill::rewrite(const char *will)
00026 {
00027
00028 wvcrash_leave_will(will);
00029 }
00030
00031 void WvCrashWill::rewrite(WVSTRING_FORMAT_DEFN)
00032 {
00033
00034
00035 rewrite(WvFastString(WVSTRING_FORMAT_CALL));
00036 }
00037
00038 WvCrashWill::~WvCrashWill()
00039 {
00040
00041 wvcrash_leave_will(old_will);
00042 }
00043