mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: disable C static fn attribute with -cg (improves backtraces)
This commit is contained in:
parent
43eaec325d
commit
4271eb477c
@ -106,7 +106,7 @@ fn (mut g Gen) gen_fn_decl(it ast.FnDecl) {
|
|||||||
g.write('$type_name ${impl_fn_name}(')
|
g.write('$type_name ${impl_fn_name}(')
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if !it.is_pub {
|
if !(it.is_pub || g.pref.is_debug) {
|
||||||
g.write('static ')
|
g.write('static ')
|
||||||
g.definitions.write('static ')
|
g.definitions.write('static ')
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user