...
This commit is contained in:
5
example/math/math.nub
Normal file
5
example/math/math.nub
Normal file
@@ -0,0 +1,5 @@
|
||||
namespace math
|
||||
|
||||
func add(a: i64, b: i64): i64 {
|
||||
return a + b
|
||||
}
|
||||
@@ -2,9 +2,11 @@ namespace main
|
||||
|
||||
/// # Documentation
|
||||
/// ## Documentation subtitle
|
||||
global func main(args: []string) {
|
||||
export func main(args: []string) {
|
||||
i = 0
|
||||
|
||||
x = math::add(1, 1)
|
||||
|
||||
c::printf("%d\n", args.count)
|
||||
|
||||
while i < args.count {
|
||||
|
||||
Reference in New Issue
Block a user