Fixed some issues found by winapi_check.
[wine] / include / msvcrt / eh.h
1 /*
2  * C++ exception handling facility
3  *
4  * Copyright 2000 Francois Gouget.
5  */
6 #ifndef __WINE_EH_H
7 #define __WINE_EH_H
8
9 #if !defined(__cplusplus) && !defined(__WINE__)
10 #error "eh.h is meant only for C++ applications"
11 #endif
12
13 #ifdef USE_MSVCRT_PREFIX
14 #define MSVCRT(x)    MSVCRT_##x
15 #else
16 #define MSVCRT(x)    x
17 #endif
18
19
20 typedef void (*terminate_handler)();
21 typedef void (*terminate_function)();
22 typedef void (*unexpected_handler)();
23 typedef void (*unexpected_function)();
24
25
26 terminate_function MSVCRT(set_terminate)(terminate_function func);
27 unexpected_function MSVCRT(set_unexpected)(unexpected_function func);
28 void        MSVCRT(terminate)();
29 void        MSVCRT(unexpected)();
30
31 #endif /* __WINE_EH_H */