aboutsummaryrefslogtreecommitdiff
path: root/examples/vec2f.hff
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-24 09:29:01 +0200
committerlemon <lsof@mailbox.org>2022-08-24 09:29:01 +0200
commit82e537ceec82c4956710e4ef2d08f73fad8bfa01 (patch)
tree54a3859afc17a479bed182883903275d805415c4 /examples/vec2f.hff
parentca3b09c836af6878ce3879ef91d7ba75f9898cb8 (diff)
opaque ptrs
Diffstat (limited to 'examples/vec2f.hff')
-rw-r--r--examples/vec2f.hff8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/vec2f.hff b/examples/vec2f.hff
index 38687eb..0a40b40 100644
--- a/examples/vec2f.hff
+++ b/examples/vec2f.hff
@@ -9,8 +9,8 @@ struct Vec2f {
return v.y;
}
- #{ fn add(l Vec2f, r Vec2f) Vec2f {
- return { l.x + r.x, l.y + r.y };
- }
- }
+}
+
+extern fn add(l Vec2f, r Vec2f) Vec2f {
+ return { l.x + r.x, l.y + r.y };
}