From be7943a35dbaa0526c659c6ca9389421e40f4431 Mon Sep 17 00:00:00 2001 From: zilmar Date: Wed, 13 Jan 2016 18:18:06 +1100 Subject: [PATCH] [Project64] Add linux friendly catch --- Source/Project64-core/ExceptionHandler.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Source/Project64-core/ExceptionHandler.h b/Source/Project64-core/ExceptionHandler.h index 86ba82440..294f66b9a 100644 --- a/Source/Project64-core/ExceptionHandler.h +++ b/Source/Project64-core/ExceptionHandler.h @@ -1,4 +1,21 @@ +/**************************************************************************** +* * +* Project64 - A Nintendo 64 emulator. * +* http://www.pj64-emu.com/ * +* Copyright (C) 2012 Project64. All rights reserved. * +* * +* License: * +* GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html * +* * +****************************************************************************/ +#pragma once + +#ifdef _WIN32 #include #define __except_try() __try #define __except_catch() __except (g_MMU->MemoryFilter(_exception_code(), _exception_info())) +#else +#define __except_try() __try +#define __except_catch() __catch (...) +#endif