mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Dev (#376)
Errno updates with errno for linux/win/macos. Updated $$ syntax to also match compiler constants.
This commit is contained in:
committed by
GitHub
parent
3f60443d66
commit
e4e8abbc6c
@@ -1,31 +1,28 @@
|
||||
$if 3: // #error: Expected '('
|
||||
$endif;
|
||||
|
||||
int x;
|
||||
$if (x > 0):
|
||||
$if x > 0:
|
||||
$endif;
|
||||
|
||||
$if (0):
|
||||
$if 0:
|
||||
$assert(false);
|
||||
$endif;
|
||||
|
||||
$if (1):
|
||||
$if 1:
|
||||
$else:
|
||||
$endif;
|
||||
|
||||
$if (1):
|
||||
$if 1:
|
||||
$else:
|
||||
$else: // #error: Expected a top level declaration here.
|
||||
$endif;
|
||||
|
||||
|
||||
$if (1):
|
||||
$elif (2):
|
||||
$if 1:
|
||||
$elif 2:
|
||||
$else:
|
||||
$endif;
|
||||
|
||||
$if (1):
|
||||
$elif (2):
|
||||
$elif (3):
|
||||
$if 1:
|
||||
$elif 2:
|
||||
$elif 3:
|
||||
$else:
|
||||
$endif;
|
||||
|
||||
Reference in New Issue
Block a user