diff options
| author | Andre Weissflog <floooh@gmail.com> | 2025-11-06 18:02:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-06 18:02:59 +0100 |
| commit | ce5f7c96010a76876d4c15f3e618ffbe583991e1 (patch) | |
| tree | 90277ec9c565fd224a36f163e0aba5009bfb8f6c | |
| parent | 19b9eb44faefc90cd3cf272fa347b4c73a622588 (diff) | |
| parent | 1874b43e8ed07964cf10e9abd12f5ad984fb864c (diff) | |
Merge pull request #1371 from any1here/cname
Update C3 to 0.7.7 and change @extern to @cname
| -rw-r--r-- | .github/workflows/gen_bindings.yml | 2 | ||||
| -rw-r--r-- | bindgen/gen_c3.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/gen_bindings.yml b/.github/workflows/gen_bindings.yml index 571dae48..713a7367 100644 --- a/.github/workflows/gen_bindings.yml +++ b/.github/workflows/gen_bindings.yml @@ -374,7 +374,7 @@ jobs: repository: floooh/sokol-c3 - uses: radekm/setup-c3@v2 with: - version: v0.7.5 + version: v0.7.7 - uses: actions/download-artifact@main with: name: ignore-me-c3 diff --git a/bindgen/gen_c3.py b/bindgen/gen_c3.py index 1259e6d9..b2e5f437 100644 --- a/bindgen/gen_c3.py +++ b/bindgen/gen_c3.py @@ -327,7 +327,7 @@ def gen_c_imports(inp, c_prefix, prefix): args = funcdecl_args_c(decl, prefix) res_type = funcdecl_result_c(decl, prefix) res_str = 'void' if res_type == '' else res_type - l(f'extern fn {res_str} {check_override(as_snake_case(decl["name"], c_prefix))}({args}) @extern("{decl["name"]}");') + l(f'extern fn {res_str} {check_override(as_snake_case(decl["name"], c_prefix))}({args}) @cname("{decl["name"]}");') l('') def gen_consts(decl, prefix): |