cgen: generate static C functions
parent
06173834c0
commit
716d867f25
|
@ -89,6 +89,10 @@ fn (mut g Gen) gen_fn_decl(it ast.FnDecl) {
|
|||
g.write('$type_name ${impl_fn_name}(')
|
||||
}
|
||||
} else {
|
||||
if !it.is_pub {
|
||||
g.write('static ')
|
||||
g.definitions.write('static ')
|
||||
}
|
||||
g.definitions.write('$type_name ${name}(')
|
||||
g.write('$type_name ${name}(')
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue