aboutsummaryrefslogtreecommitdiff
path: root/bindgen
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2026-01-01 13:08:42 +0100
committerAndre Weissflog <floooh@gmail.com>2026-01-01 13:08:42 +0100
commit79847279e42a3b2ffbeb0700927ec57aafaf388e (patch)
tree7b71e5599f108ae610f459c0a48a46b6e3da5a5c /bindgen
parentf38e0b520f99a501b71172c3a3181c9ab6ebdd79 (diff)
gen_rust.py: fix incorrect type mapping for sokol-shape types
Diffstat (limited to 'bindgen')
-rw-r--r--bindgen/gen_rust.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bindgen/gen_rust.py b/bindgen/gen_rust.py
index fde0564b..c78d4522 100644
--- a/bindgen/gen_rust.py
+++ b/bindgen/gen_rust.py
@@ -54,6 +54,7 @@ range_struct_name = "Range"
c_callbacks = ["slog_func"]
# NOTE: syntax for function results: "func_name.RESULT"
+# CAREFUL: DON"T ADD ANY STRUCT ITEMS HERE SINCE THIS MAY CAUSE MEMORY CORRUPTION
overrides = {
"type": "_type",
"ref": "_ref",
@@ -65,8 +66,6 @@ overrides = {
"sg_dispatch.num_groups_x": "uintptr_t",
"sg_dispatch.num_groups_y": "uintptr_t",
"sg_dispatch.num_groups_z": "uintptr_t",
- "sshape_element_range_t.base_element": "uintptr_t",
- "sshape_element_range_t.num_elements": "uintptr_t",
"sdtx_font.font_index": "uintptr_t",
"sdtx_move": "sdtx_move_cursor",