aboutsummaryrefslogtreecommitdiff
path: root/examples/old_stuff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-02-24 19:03:29 +0000
committergingerBill <bill@gingerbill.org>2018-02-24 19:03:29 +0000
commit35ba5771a5dbe5fec3fea8804fb46fe843478830 (patch)
treed46c33864d8a2b14a2bba7c860ce2cf875f2bc39 /examples/old_stuff
parentb2461f7192684f979301be9f174237e740ec28c6 (diff)
Replace `compile_assert` with `#assert`
Diffstat (limited to 'examples/old_stuff')
-rw-r--r--examples/old_stuff/demo_backup.odin6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/old_stuff/demo_backup.odin b/examples/old_stuff/demo_backup.odin
index 8eeaeb357..6a7952ae1 100644
--- a/examples/old_stuff/demo_backup.odin
+++ b/examples/old_stuff/demo_backup.odin
@@ -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