1 //
2 //    vcclr.h - helper code for using the managed extensions to C++
3 //
4 //        Copyright (C) Microsoft Corporation
5 //        All rights reserved.
6 //
7
8 #if _MSC_VER > 1000
9 #pragma once
10 #endif
11
12 #if !defined(_INC_VCCLR)
13 #define _INC_VCCLR
14 #ifndef RC_INVOKED
15
16 #using <mscorlib.dll>
17 #include <gcroot.h>
18
19 #pragma warning(push)
20 #pragma warning(disable:4400)
21
22 #ifdef __cplusplus_cli
23 typedef cli::interior_ptr<const System::Char> __const_Char_ptr;
24 typedef cli::interior_ptr<const System::Byte> __const_Byte_ptr;
25 typedef cli::interior_ptr<System::Byte> _Byte_ptr;
26 typedef const System::String^ __const_String_handle;
27 #define _NULLPTR nullptr
28 #else
29 typedef const System::Char* __const_Char_ptr;
30 typedef const System::Byte* __const_Byte_ptr;
31 typedef System::Byte* _Byte_ptr;
32 typedef const System::String* __const_String_handle;
33 #define _NULLPTR 0
34 #endif
Lines 35 ... 44 are skipped.
45           bp += offset;
46     }
47       return reinterpret_cast<__const_Char_ptr>(bp);
48 }
49
50 #pragma warning(pop)
51
52 #undef _NULLPTR
53
54 #endif /* RC_INVOKED */
55 #endif //_INC_VCCLR
56