Skip to content

Commit

Permalink
gen_zig.py: don't 'pub' extern C func declaration.
Browse files Browse the repository at this point in the history
...that way they don't show up in the generated zig-docs.
  • Loading branch information
floooh committed Feb 1, 2025
1 parent 9148922 commit 34bdc2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindgen/gen_zig.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def gen_enum(decl, prefix):

def gen_func_c(decl, prefix):
c(decl.get('comment'))
l(f"pub extern fn {decl['name']}({funcdecl_args_c(decl, prefix)}) {funcdecl_result_c(decl, prefix)};")
l(f"extern fn {decl['name']}({funcdecl_args_c(decl, prefix)}) {funcdecl_result_c(decl, prefix)};")
l('')

def gen_func_zig(decl, prefix):
Expand Down

0 comments on commit 34bdc2c

Please sign in to comment.