2001-05-31 23:32:53 +02:00
|
|
|
/*
|
|
|
|
* C++ exception handling facility
|
|
|
|
*
|
|
|
|
* Copyright 2000 Francois Gouget.
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2001-05-31 23:32:53 +02:00
|
|
|
*/
|
|
|
|
#ifndef __WINE_EH_H
|
|
|
|
#define __WINE_EH_H
|
2008-12-11 22:37:34 +01:00
|
|
|
|
2019-08-09 17:32:04 +02:00
|
|
|
#include <corecrt.h>
|
2001-05-31 23:32:53 +02:00
|
|
|
|
2020-11-20 10:12:15 +01:00
|
|
|
#ifndef __cplusplus
|
2001-05-31 23:32:53 +02:00
|
|
|
#error "eh.h is meant only for C++ applications"
|
|
|
|
#endif
|
|
|
|
|
2007-02-20 09:35:41 +01:00
|
|
|
#include <pshpack8.h>
|
|
|
|
|
2002-07-19 05:24:50 +02:00
|
|
|
struct _EXCEPTION_POINTERS;
|
2001-05-31 23:32:53 +02:00
|
|
|
|
2008-12-17 14:45:18 +01:00
|
|
|
typedef void (__cdecl *terminate_handler)(void);
|
|
|
|
typedef void (__cdecl *terminate_function)(void);
|
|
|
|
typedef void (__cdecl *unexpected_handler)(void);
|
|
|
|
typedef void (__cdecl *unexpected_function)(void);
|
|
|
|
typedef void (__cdecl *_se_translator_function)(unsigned int code, struct _EXCEPTION_POINTERS *info);
|
|
|
|
|
2020-11-24 18:50:06 +01:00
|
|
|
_ACRTIMP terminate_function __cdecl set_terminate(terminate_function func);
|
|
|
|
_ACRTIMP unexpected_function __cdecl set_unexpected(unexpected_function func);
|
|
|
|
_ACRTIMP _se_translator_function __cdecl set_se_translator(_se_translator_function func);
|
2008-12-17 14:45:18 +01:00
|
|
|
|
2020-04-15 18:27:22 +02:00
|
|
|
_ACRTIMP DECLSPEC_NORETURN void __cdecl terminate(void);
|
|
|
|
_ACRTIMP DECLSPEC_NORETURN void __cdecl unexpected(void);
|
2001-05-31 23:32:53 +02:00
|
|
|
|
2007-02-20 09:35:41 +01:00
|
|
|
#include <poppack.h>
|
|
|
|
|
2001-05-31 23:32:53 +02:00
|
|
|
#endif /* __WINE_EH_H */
|