This website requires JavaScript.
Explore
Help
Register
Sign In
gitback
/
zig
Watch
1
Star
0
Fork
0
You've already forked zig
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
e5bc5873d7
zig
/
example
/
shared_library
/
mathtest.zig
4 lines
59 B
Zig
Raw
Normal View
History
Unescape
Escape
syntax: back to -> for return type, no more =>
2016-01-26 08:06:19 +08:00
export
fn
add
(
a
:
i32
,
b
:
i32
)
-
>
i32
{
explicitly return from blocks instead of last statement being expression value closes #629
2017-12-22 13:50:30 +08:00
return
a
+
b
;
add root export declaration which is overridable by command line options
2015-11-28 12:24:11 +08:00
}
Reference in New Issue
Copy Permalink