bcb预定义宏

MacroValueDescription
__ANDROID__Defined only in compilers that support cross compiling with an Android product as the target platform:

__APPLE__Defined only in compilers that support cross compiling with an Apple product as the target platform:

__arm__Defined only in compilers that support cross compiling for the 32-bit ARM compiler architecture:

__arm64__Defined only in compilers that support cross compiling for the ARM64 compiler architecture:

__BCOPT__1Defined only in compilers that support optimization, therefore always defined.
__BCPLUSPLUS__Values are listed in C++ Compiler Versions in this topic.Defined if you’ve selected C++ compilation; will increase in later releases.
__BOOL__1Indicates that the bool keyword is accepted.
__BORLANDC__Values are listed in C++ Compiler Versions in this topic.Version number.
__CDECL__1Defined if Calling Convention is set to cdecl; otherwise undefined.
_CHAR_UNSIGNED1Undefined by default. Using the -K switch to make the default character unsigned causes this macro to be defined. Ultimately, the -K option controls how a char is extended when converted to an int. By default, the compiler sign-extends, but if you enable _CHAR_UNSIGNED_, then the compiler zero-extends characters when converting to int.
__clang__1Defined if a Clang-enhanced C++ compiler is in use.

See Clang Builtin Macros.

__CODEGEARC__Values are listed in C++ Compiler Versions and in this topic.Version number.
__CODEGEARC_VERSION__
  • Major version number is bits 31..24
  • Minor version number is bits 23..16
  • Internal version number is bits 15..0
This internal macro expands to an integer that encodes the major version of the compiler, minor version, and an internal number. See Example of __CODEGEARC_VERSION__ Macro.
__CODEGUARD__Defined whenever one of the CodeGuard compiler options is used; otherwise it is undefined.
__CONSOLE__1When defined, the macro indicates that the program is a console application.
_CPPUNWIND1Enable stack unwinding. This is true by default; use -xd-!ALink(OSCGExceptions1) to disable.
__cplusplus1Defined if in C++ mode; otherwise, undefined.
__DATE__String literalDate when processing began on the current file.
__DLL__1Defined whenever the -WD compiler option is used; otherwise it is undefined.
__FILE__String literalName of the current file being processed.
__FLAT__1Defined when compiling in 32-bit flat memory model.
__FUNC__ or __FUNCTION__String literalName of the current function being processed. More details.
__LINE__Decimal constantNumber of the current source file line being processed.
__MACH__Defined only in compilers that support cross compiling with a target of MAC OSX.
_M_IX860x12cAlways defined. The default value is 300. You can change the value to 400 or 500 by using the /4 or /5 compiler options.
__MT__1Defined only if the -tWM option is used. It specifies that the multithread library is to be linked.
__PASCAL__1Defined if Calling Convention is set to Pascal; otherwise undefined.
_PUSHPOP_SUPPORTED1Always defined; allows Microsoft standard headers to use push and pop to verify whether a feature is supported.
_STDCALL_SUPPORTED1Always defined; defines the Microsoft stdcall calling convention.
__STDC__1Defined if you compile with the -A compiler option; otherwise, it is undefined.
__TCPLUSPLUS__Values are listed in C++ Compiler Versions in this topic.Version number.
__TEMPLATES__1Defined as 1 for C++ files (meaning that templates are supported); otherwise, it is undefined.
__TIME__String literalTime when processing began on the current file.
__TLS__1Thread Local Storage. Always true.
__TURBOC__Values are listed in C++ Compiler Versions and in this topic.Will increase in later releases.
_UNICODE and UNICODEDefined for C++ programs that use the VCL.
_WCHAR_TDefined only for C++ programs to indicate that wchar_t is an intrinsically defined data type.
_WCHAR_T_DEFINEDDefined only for C++ programs to indicate that wchar_t is an intrinsically defined data type.
_Windows1Defined when compiling on the Windows platform.
__WIN32__1Defined for console and GUI applications on the 32-bit Windows platform. The classic compiler defines this macro as a built-in. The Clang-based compiler requires _defs.h be included, but this header file is normally included by default in a standard application.
_WIN641Defined for console and GUI applications on the 64-bit Windows platform.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

zpweiai

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值