xHarbour Reference Documentation > Function Reference |
Retrieves build information of the xHarbour compiler.
HB_BuildInfo( <nWhichInfo> ) --> cBuildInfo
The function returns the requested build information. The data type of the return value depends on <nWhichInfo>.
Function HB_BuildInfo() is used to retrieve information about the current build of the xHarbour compiler. The following information is returned depending on the #define constant used for <nWichInfo>:
Build information for the xHarbour compiler
Constant | Value | Valtype() | Description |
---|---|---|---|
_HB_VER_MAJOR | 1 | N | Major version number |
_HB_VER_MINOR | 2 | N | Minor version number |
_HB_VER_REVISION | 3 | N | Revision number |
_HB_VER_LEX | 4 | C | Lex version |
_HB_VER_AS_STRING | 5 | C | Complete version as character string |
_HB_PCODE_VER | 6 | N | Version number of PCode engine |
_HB_VER_COMPILER | 7 | C | Version of C compiler |
_HB_VER_PLATFORM | 8 | C | Platform xHarbour is running on |
_HB_VER_BUILD_DATE | 9 | C | Date xHarbour was built |
_HB_VER_BUILD_TIME | 10 | C | Time xHarbour was built |
_HB_VER_LENTRY | 11 | C | Last entry in CVS ChangeLog file |
_HB_VER_CHLCVS | 12 | C | Revision of last entry in CVS |
_HB_VER_C_USR | 13 | C | Reserved |
_HB_VER_L_USR | 14 | C | Reserved |
_HB_VER_PRG_USR | 15 | C | Reserved |
_HB_EXTENSION | 16 | L | #define HB_EXTENSION |
is used for current build | |||
_HB_C52_UNDOC | 17 | L | #define HB_C52_UNDOC |
is used for current build | |||
_HB_C52_STRICT | 18 | L | #define HB_C52_STRICT |
is used for current build | |||
_HB_COMPAT_C53 | 19 | L | #define HB_COMPAT_C53 |
is used for current build | |||
_HB_COMPAT_XPP | 20 | L | #define HB_COMPAT_XPP |
is used for current build | |||
_HB_COMPAT_VO | 21 | L | #define HB_COMPAT_VO |
is used for current build | |||
_HB_COMPAT_FLAGSHIP | 22 | L | #define HB_COMPAT_FLAGSHIP |
is used for current build | |||
_HB_COMPAT_FOXPRO | 23 | L | #define HB_COMPAT_FOXPRO |
is used for current build | |||
_HB_COMPAT_DBASE | 24 | L | #define HB_COMPAT_DBASE |
is used for current build | |||
_HB_HARBOUR_OBJ_GENERATION | 25 | L | Reserved |
_HB_HARBOUR_STRICT_ANSI_C | 26 | L | Reserved |
_HB_CPLUSPLUS | 27 | L | Reserved |
_HB_HARBOUR_YYDEBUG | 28 | L | Reserved |
_HB_SYMBOL_NAME_LEN | 29 | N | Maximum length of symbolic variable names |
_HB_MULTITHREAD | 30 | L | Multi-threading is supported |
_HB_VM_OPTIMIZATION | 31 | N | Optimization level of Virtual Machine |
_HB_LANG_ID | 32 | C | Language ID of language used for build |
_HB_ARRAY_MODE | 33 | N | Reserved |
_HB_CREDITS | 34 | A | Credits to xHarbour developers |
See also: | HB_BuildDate(), HB_Compiler(), Os(), Os_VersionInfo() |
Category: | Environment functions , xHarbour extensions |
Header: | hbver.ch |
Source: | rtl\version.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// The example displays build information of the xHarbour compiler // and the operating system #include "hbver.ch" PROCEDURE Main CLS ? "Compiler:", HB_BuildInfo( _HB_VER_AS_STRING ) ? ? "Operating System:", HB_BuildInfo( _HB_VER_PLATFORM ) RETURN
http://www.xHarbour.com