Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Jan 13, 2024
1 parent 9a6112b commit 87a131b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/c2v.v
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ fn (mut c C2V) fn_decl(mut node Node, gen_types string) {
c.genln("[c:'${name}']")
}
name = lower
if node.class_modifier == 'extern' && name in c_known_fn_names {
if name in c_known_fn_names {
c.genln('fn C.${name}(${str_args}) ${typ}')
c.extern_fns << name
} else {
Expand Down

0 comments on commit 87a131b

Please sign in to comment.