Change syntax of $if, $assert, $include, $echo. Introduces $error

This commit is contained in:
Christoffer Lerno
2023-05-06 12:18:00 +02:00
parent 3dd6675e1b
commit 172d561f07
104 changed files with 338 additions and 336 deletions

View File

@@ -1,7 +1,7 @@
module std::thread::os;
import libc;
$if (thread::THREAD_MODEL == ThreadModel.POSIX)
$if thread::THREAD_MODEL == ThreadModel.POSIX:
const PTHREAD_MUTEX_NORMAL = 0;
const PTHREAD_MUTEX_ERRORCHECK = 1;
@@ -14,7 +14,7 @@ typedef NativeOnceFlag = PthreadOnce;
typedef Pthread = distinct void*;
$if (env::OS_TYPE == LINUX)
$if env::OS_TYPE == LINUX:
typedef PthreadMutex = distinct ulong[5];
typedef PthreadAttribute = distinct ulong[7];
typedef PthreadMutexAttribute = distinct uint;

View File

@@ -1,6 +1,6 @@
module std::thread::os;
$if (thread::THREAD_MODEL == ThreadModel.WIN32)
$if thread::THREAD_MODEL == ThreadModel.WIN32:
typedef NativeThread = Win32_HANDLE;