STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
setjmpex.h
Go to the documentation of this file.
1 //
2 // setjmpex.h
3 //
4 // Copyright (c) Microsoft Corporation. All rights reserved.
5 //
6 // This header replaces setjmp with _setjmpex, which will enable the safe setjmp
7 // and longjmp functionality that works correctly with __try/__except/__finally.
8 //
9 #pragma once
10 #define _INC_SETJMPEX
11 
12 
13 
14 #ifdef _M_IX86
15  #define setjmp _setjmp
16  #define longjmp _longjmpex
17 #else
18  #undef setjmp
19  #define setjmp _setjmpex
20 #endif
21 
22 #include <setjmp.h>