Updated native variants of file handling. Fixed $if folding chain.

This commit is contained in:
Christoffer Lerno
2023-02-23 17:35:34 +01:00
committed by Christoffer Lerno
parent f86aa136cb
commit 2a6339a25e
17 changed files with 653 additions and 445 deletions

View File

@@ -128,6 +128,11 @@ const bool BENCHMARKING = $$BENCHMARKING;
const bool TESTING = $$TESTING;
const MemoryEnvironment MEMORY_ENV = (MemoryEnvironment)$$MEMORY_ENVIRONMENT;
macro bool os_is_win32()
{
return OS_TYPE == OsType.WIN32;
}
macro bool os_is_posix()
{
$switch (OS_TYPE):
@@ -204,4 +209,5 @@ $if (COMPILER_LIBC_AVAILABLE && OS_TYPE != OsType.WIN32):
}
};
$endif;
}
}