mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Change syntax of $if, $assert, $include, $echo. Introduces $error
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module std::thread::os;
|
||||
|
||||
$if (thread::THREAD_MODEL == ThreadModel.WIN32)
|
||||
$if thread::THREAD_MODEL == ThreadModel.WIN32:
|
||||
|
||||
typedef NativeThread = Win32_HANDLE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user