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:
@@ -3,7 +3,7 @@ module test;
|
||||
|
||||
macro foo()
|
||||
{
|
||||
$if ($defined(A))
|
||||
$if $defined(A):
|
||||
return A + 1;
|
||||
$else
|
||||
return 1;
|
||||
@@ -12,7 +12,7 @@ macro foo()
|
||||
|
||||
const Z = foo();
|
||||
|
||||
$if (!$defined(A) && Z == 1)
|
||||
$if !$defined(A) && Z == 1:
|
||||
const A = 222;
|
||||
$endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user