d2c_config

Top  Previous  Next

Pretranslated C++ code > Delphi RTL/VCL > C++ code for other compilers > d2c_config

 

 

d2c_config can be used to set definitions for different targets. At the moment only Windows 64 bit is completely supported.

 

For Visual C++ a constant "_CPP_VER" for the used version of C++ is calculated in dependence from the value of "__cplusplus".

 

#if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1900)

#if __cplusplus == 201704L

   #define _CPP_VER 100

#else

   #if __cplusplus == 201703L

    #define _CPP_VER 17

   #else

     #define _CPP_VER 14

   #endif

#endif

#else

#define _CPP_VER 98

#endif

 

 

 

 

The file also contains a constant, which defines the base index for strings:

 

const int StringBaseIndex = 0;



This page belongs to the DelphiXE2Cpp11 Documentation

DelphiXE2Cpp11 home  Content