Extend win32 stdlib API.

This commit is contained in:
Christian Buttner
2024-07-02 13:38:58 +02:00
committed by Christoffer Lerno
parent 3be1bf4384
commit 10ed03d6bf
3 changed files with 59 additions and 4 deletions

View File

@@ -116,6 +116,8 @@ enum ArchType
const OsType OS_TYPE = (OsType)$$OS_TYPE;
const ArchType ARCH_TYPE = (ArchType)$$ARCH_TYPE;
const bool ARCH_32_BIT = $$REGISTER_SIZE == 4;
const bool ARCH_64_BIT = $$REGISTER_SIZE == 8;
const bool LIBC = $$COMPILER_LIBC_AVAILABLE;
const bool NO_LIBC = !$$COMPILER_LIBC_AVAILABLE;
const CompilerOptLevel COMPILER_OPT_LEVEL = (CompilerOptLevel)$$COMPILER_OPT_LEVEL;