WinTer 0.1.1
Windows Terminal Emulator
Loading...
Searching...
No Matches
Compile-Time Context Detection

Macros that identify the compiler, OS, architecture, endianness, C standard, and build configuration at preprocessing time. More...

Macros

#define OS_WINDOWS   1
 Defined to 1 if compiling for a Windows operating system.
#define OS_NAME   "Windows"
 Human-readable string name of the operating system.
#define BUILD_DEBUG   1
 Defined to 1 if compiling in Debug mode.
#define BUILD_NAME   "Debug"
 Human-readable string name of the build configuration.
#define C_STANDARD   89
 Integer representing the detected C standard version.
#define C_STANDARD_NAME   "C89/Default"
 Human-readable string of the detected C standard.

Detailed Description

Macros that identify the compiler, OS, architecture, endianness, C standard, and build configuration at preprocessing time.

Each category defines both a numeric flag (e.g., OS_WINDOWS 1) and a human-readable name string (e.g., OS_NAME "Windows") so you can use them in both #if guards and printf diagnostics without duplication.

Macro Definition Documentation

◆ BUILD_DEBUG

#define BUILD_DEBUG   1

Defined to 1 if compiling in Debug mode.

Definition at line 112 of file base_macros.h.

◆ BUILD_NAME

#define BUILD_NAME   "Debug"

Human-readable string name of the build configuration.

Definition at line 114 of file base_macros.h.

◆ C_STANDARD

#define C_STANDARD   89

Integer representing the detected C standard version.

Definition at line 154 of file base_macros.h.

◆ C_STANDARD_NAME

#define C_STANDARD_NAME   "C89/Default"

Human-readable string of the detected C standard.

Definition at line 156 of file base_macros.h.

◆ OS_NAME

#define OS_NAME   "Windows"

Human-readable string name of the operating system.

Definition at line 66 of file base_macros.h.

◆ OS_WINDOWS

#define OS_WINDOWS   1

Defined to 1 if compiling for a Windows operating system.

Definition at line 64 of file base_macros.h.