eh.h revision af062818b47340eef15700d2f0211576ba3506ee
af062818b47340eef15700d2f0211576ba3506eevboxsync/*
af062818b47340eef15700d2f0211576ba3506eevboxsync * C++ exception handling facility
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright 2000 Francois Gouget.
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is free software; you can redistribute it and/or
af062818b47340eef15700d2f0211576ba3506eevboxsync * modify it under the terms of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License as published by the Free Software Foundation; either
af062818b47340eef15700d2f0211576ba3506eevboxsync * version 2.1 of the License, or (at your option) any later version.
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is distributed in the hope that it will be useful,
af062818b47340eef15700d2f0211576ba3506eevboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
af062818b47340eef15700d2f0211576ba3506eevboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
af062818b47340eef15700d2f0211576ba3506eevboxsync * Lesser General Public License for more details.
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * You should have received a copy of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License along with this library; if not, write to the Free Software
af062818b47340eef15700d2f0211576ba3506eevboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
af062818b47340eef15700d2f0211576ba3506eevboxsync */
af062818b47340eef15700d2f0211576ba3506eevboxsync#ifndef __WINE_EH_H
af062818b47340eef15700d2f0211576ba3506eevboxsync#define __WINE_EH_H
af062818b47340eef15700d2f0211576ba3506eevboxsync#ifndef __WINE_USE_MSVCRT
af062818b47340eef15700d2f0211576ba3506eevboxsync#define __WINE_USE_MSVCRT
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#if !defined(__cplusplus) && !defined(__WINE_MSVCRT_TEST)
af062818b47340eef15700d2f0211576ba3506eevboxsync#error "eh.h is meant only for C++ applications"
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#include <pshpack8.h>
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncstruct _EXCEPTION_POINTERS;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef void (*terminate_handler)(void);
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef void (*terminate_function)(void);
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef void (*unexpected_handler)(void);
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef void (*unexpected_function)(void);
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef void (*_se_translator_function)(unsigned int code, struct _EXCEPTION_POINTERS *info);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncterminate_function set_terminate(terminate_function func);
af062818b47340eef15700d2f0211576ba3506eevboxsyncunexpected_function set_unexpected(unexpected_function func);
af062818b47340eef15700d2f0211576ba3506eevboxsync_se_translator_function _set_se_translator(_se_translator_function func);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncvoid terminate(void);
af062818b47340eef15700d2f0211576ba3506eevboxsyncvoid unexpected(void);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#include <poppack.h>
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif /* __WINE_EH_H */