diff options
| author | Garett Bass <garettbass@me.com> | 2021-03-27 16:44:45 -0700 |
|---|---|---|
| committer | Garett Bass <garettbass@me.com> | 2021-03-27 16:44:45 -0700 |
| commit | 7b43936769625bb1ed93204cd630d95d9dad5c14 (patch) | |
| tree | 91ba194be9d14a4bab455cc5a7f609dd71e9786f | |
| parent | 194bb42e9c367d845305610dfd34d7462d36c411 (diff) | |
fix Nim cstring argument type
| -rw-r--r-- | bindgen/gen_nim.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bindgen/gen_nim.py b/bindgen/gen_nim.py index 21b3b121..afe3c5b1 100644 --- a/bindgen/gen_nim.py +++ b/bindgen/gen_nim.py @@ -266,7 +266,7 @@ def as_extern_c_arg_type(arg_type, prefix): elif is_const_void_ptr(arg_type): return "pointer" elif is_string_ptr(arg_type): - return "ptr uint8" + return "cstring" elif is_const_struct_ptr(arg_type): return f"ptr {as_nim_struct_type(extract_ptr_type(arg_type), prefix)}" elif is_prim_ptr(arg_type): |