From 0792395930149c4e19f87faf0a80e3e7a352b153 Mon Sep 17 00:00:00 2001 From: Matheus Catarino Date: Sun, 12 Jan 2025 12:30:34 -0300 Subject: [PATCH] some changes * fix fetch update * add memtrack --- bindgen/gen_all.py | 2 ++ bindgen/gen_d.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/bindgen/gen_all.py b/bindgen/gen_all.py index 385d1f549..45a969b1f 100644 --- a/bindgen/gen_all.py +++ b/bindgen/gen_all.py @@ -44,6 +44,8 @@ # D d_tasks = [ *tasks, + [ '../sokol_fetch.h', 'sfetch_', [] ], + [ '../util/sokol_memtrack.h', 'smemtrack_', [] ], [ '../util/sokol_imgui.h', 'simgui_', ['sg_', 'sapp_'] ], ] gen_d.prepare() diff --git a/bindgen/gen_d.py b/bindgen/gen_d.py index a9d946013..86851c630 100644 --- a/bindgen/gen_d.py +++ b/bindgen/gen_d.py @@ -26,6 +26,7 @@ 'sglue_': 'glue', 'sfetch_': 'fetch', 'simgui_': 'imgui', + 'smemtrack_': 'memtrack', } c_source_paths = { @@ -40,6 +41,7 @@ 'sglue_': 'sokol-d/src/sokol/c/sokol_glue.c', 'sfetch_': 'sokol-d/src/sokol/c/sokol_fetch.c', 'simgui_': 'sokol-d/src/sokol/c/sokol_imgui.c', + 'smemtrack_': 'sokol-d/src/sokol/c/sokol_memtrack.c', } ignores = [ @@ -91,6 +93,7 @@ prim_defaults = { 'int': '0', 'bool': 'false', + 'char': '0', 'int8_t': '0', 'uint8_t': '0', 'int16_t': '0',