no :: in func decls
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
native :: import "../include/native.h"
|
||||
|
||||
pass_alias :: func(value native.imported_int_alias) native.imported_int {
|
||||
pass_alias func(value native.imported_int_alias) native.imported_int {
|
||||
return value
|
||||
}
|
||||
|
||||
double_value :: c_func(value c_int) c_int {
|
||||
double_value c_func(value c_int) c_int {
|
||||
return value + value
|
||||
}
|
||||
|
||||
call_mapper :: func(mapper native.Imported_Mapper) c_int {
|
||||
call_mapper func(mapper native.Imported_Mapper) c_int {
|
||||
return mapper?(21)
|
||||
}
|
||||
|
||||
enum_identity :: c_func(value native.Imported_Enum) native.Imported_Enum {
|
||||
enum_identity c_func(value native.Imported_Enum) native.Imported_Enum {
|
||||
return value
|
||||
}
|
||||
|
||||
main :: func() void {
|
||||
main func() void {
|
||||
_ = native.imported_add(pass_alias(20), 22)
|
||||
_ = native.imported_scalar(3, 4)
|
||||
_ = native.child_value(7)
|
||||
|
||||
Reference in New Issue
Block a user