mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Updated native variants of file handling. Fixed $if folding chain.
This commit is contained in:
committed by
Christoffer Lerno
parent
f86aa136cb
commit
2a6339a25e
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user