BT constants

BT constants

BT constants

Function

reads the compile-time constants and lightweight cache constants of the current BT runtime.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
None-NoNoneConstant properties require no parameters.

Return Value

ConstantTypeDescription
BT.VERSIONStringThe current BT version.
BT.NAMEStringCurrent binary logical name, usually bt or bt_app.
BT.OSStringOperating system name, such as windows, linux, macos.
BT.ARCHStringCPU architecture, such as x86_64, aarch64.
BT.FAMILYStringOperating system family, such as windows, unix, wasm.
BT.DEBUGBoolWhether to build for debug.
BT.EXE_EXTStringCurrent platform executable file extension, such as .exe or empty string.
BT.LIB_EXTStringCurrent platform dynamic library extension, such as .dll, .so, .dylib.
BT.POINTER_WIDTHIntPointer width, usually 32 or 64.
BT.THREADSIntNumber of available parallel threads, cached after first read.

Examples

Notes

  • BT constants are read-only properties.
- BT.THREADS uses runtime caching and does not query the system repeatedly on each read.