From 150a150e9ac45908a8f35a50640d7693a858bafa Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 24 Jul 2003 08:19:20 +0000 Subject: [PATCH] add ArchHooks_Unix --- .../src/arch/ArchHooks/ArchHooks_Unix.cpp | 22 +++++++++++++++++++ stepmania/src/arch/ArchHooks/ArchHooks_Unix.h | 19 ++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 stepmania/src/arch/ArchHooks/ArchHooks_Unix.cpp create mode 100644 stepmania/src/arch/ArchHooks/ArchHooks_Unix.h diff --git a/stepmania/src/arch/ArchHooks/ArchHooks_Unix.cpp b/stepmania/src/arch/ArchHooks/ArchHooks_Unix.cpp new file mode 100644 index 0000000000..9c9f79355e --- /dev/null +++ b/stepmania/src/arch/ArchHooks/ArchHooks_Unix.cpp @@ -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 + */ diff --git a/stepmania/src/arch/ArchHooks/ArchHooks_Unix.h b/stepmania/src/arch/ArchHooks/ArchHooks_Unix.h new file mode 100644 index 0000000000..e9597d2af5 --- /dev/null +++ b/stepmania/src/arch/ArchHooks/ArchHooks_Unix.h @@ -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 + */