platform.hpp

来自「一个实现C++反射机制的类库」· HPP 代码 · 共 73 行

HPP
73
字号
/******************************************************************************\*                                                                              **   platform.h                                                                 **                                                                              **   These defines are intended to provide a simple way to #ifdef code.         **   They are currenly very simple.  I may need to provide additional           **   information like the OS version and compiler version and name.             **                                                                              *\******************************************************************************/// $Id: platform.hpp,v 1.1 2007/10/25 14:05:28 tdevadit Exp $#ifndef REFLCPP_PLATFORM_H#define REFLCPP_PLATFORM_H// Operating system#if defined(_AIX)    #define IXCR_AIX#elif defined(__sgi)    #define IXCR_IRIX#elif defined(__linux)    #define IXCR_LINUX#elif defined(__sun)    #define IXCR_SOLARIS#elif defined(_WIN32)    #define IXCR_WIN32#else    #error  Unknown OS.#endif// Compiler#if defined(__GNUC__)    #define IXCR_GNUC#elif defined (mips) && defined(_COMPILER_VERSION)    #define IXCR_MIPSPRO#elif defined (__SUNPRO_CC)    #define IXCR_SUNPRO#elif defined (_MSC_VER)    #if _MSC_VER < 1310        #error The C++ reflection library is unlikely to compile with this version of Visual C++.    #endif    #define IXCR_VCPP#else    #error Unknown compiler.#endif// Template handling#if defined(IXCR_GNUC) || defined(IXCR_MIPSPRO)    #define IXCR_INCLUDE_TEMPLATE#endifnamespace reflcpp {static const char platform_h_id[] ="$Id: platform.hpp,v 1.1 2007/10/25 14:05:28 tdevadit Exp $";}#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?