add ArchHooks_Unix

This commit is contained in:
Glenn Maynard
2003-07-24 08:19:20 +00:00
parent 928c746ba3
commit 150a150e9a
2 changed files with 41 additions and 0 deletions
@@ -0,0 +1,22 @@
#include "global.h"
#include "ArchHooks_Unix.h"
#include "archutils/Unix/SignalHandler.h"
#if defined(HAVE_BACKTRACE)
#include "archutils/Unix/CrashHandler.h"
#endif
ArchHooks_Unix::ArchHooks_Unix()
{
#if defined(HAVE_BACKTRACE)
CrashHandlerHandleArgs();
SignalHandler::OnClose( CrashSignalHandler );
#endif
}
/*
* Copyright (c) 2003 by the person(s) listed below. All rights reserved.
*
* Glenn Maynard
*/
@@ -0,0 +1,19 @@
#ifndef ARCH_HOOKS_UNIX_H
#define ARCH_HOOKS_UNIX_H
#include "ArchHooks.h"
class ArchHooks_Unix: public ArchHooks
{
public:
ArchHooks_Unix();
};
#undef ARCH_HOOKS
#define ARCH_HOOKS ArchHooks_Unix
#endif
/*
* Copyright (c) 2003 by the person(s) listed below. All rights reserved.
*
* Glenn Maynard
*/