Replace compile_assert with #assert
This commit is contained in:
1 parent
b2461f7192
commit
35ba5771a5
17 files changed
+96
-69
No files matched your search
@@ -50,9 +50,9 @@ general_stuff :: proc() {
|
||||
foo := Foo{123, 0.513, "A string"};
|
||||
x, y, z := expand_to_tuple(foo);
|
||||
fmt.println(x, y, z);
|
||||
compile_assert(type_of(x) == int);
|
||||
compile_assert(type_of(y) == f32);
|
||||
compile_assert(type_of(z) == string);
|
||||
#assert(type_of(x) == int);
|
||||
#assert(type_of(y) == f32);
|
||||
#assert(type_of(z) == string);
|
||||
|
||||
|
||||
// By default, all variables are zeroed
|
||||
|
||||
Reference in new issue
Block a user