diff options
| author | 2022-08-24 09:29:01 +0200 | |
|---|---|---|
| committer | 2022-08-24 09:29:01 +0200 | |
| commit | 82e537ceec82c4956710e4ef2d08f73fad8bfa01 (patch) | |
| tree | 54a3859afc17a479bed182883903275d805415c4 /examples | |
| parent | ca3b09c836af6878ce3879ef91d7ba75f9898cb8 (diff) | |
opaque ptrs
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/vec2f.hff | 8 |
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 }; } |