Ifdefs, moved semantic to check, fixed error reporting for builtins
This commit is contained in:
11
test/if_def_block.ink
Normal file
11
test/if_def_block.ink
Normal file
@@ -0,0 +1,11 @@
|
||||
#add_define Alpha
|
||||
|
||||
pixel main :: () {
|
||||
#if Env.Alpha {
|
||||
alpha_color := float4(1, 0, 0, 1);
|
||||
f := 2.0;
|
||||
} else {
|
||||
color := float3(0, 0, 0);
|
||||
g := 5.0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user