Errno updates with errno for linux/win/macos. Updated $$ syntax to also match compiler constants.
This commit is contained in:
Christoffer Lerno
2022-01-18 01:31:14 +01:00
committed by GitHub
parent 3f60443d66
commit e4e8abbc6c
22 changed files with 186 additions and 99 deletions

View File

@@ -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;