Compare commits

...

3 Commits

Author SHA1 Message Date
sonoro1234
64fcbf194b cpp2ffi: explicit str_subst 2026-06-10 19:21:37 +02:00
sonoro1234
fced8c3451 README.md: more update bindings list 2026-06-10 11:52:57 +02:00
sonoro1234
7388e030e8 README.md: update bindings list 2026-06-10 11:23:33 +02:00
2 changed files with 11 additions and 3 deletions

View File

@@ -106,10 +106,14 @@ Notes:
# example bindings based on cimgui # example bindings based on cimgui
* [LuaJIT-ImGui](https://github.com/sonoro1234/LuaJIT-ImGui) * [LuaJIT-ImGui](https://github.com/sonoro1234/LuaJIT-ImGui)
* [cimgui-go](https://github.com/AllenDang/cimgui-go)
* [Hexa.NET.ImGui](https://github.com/HexaEngine/Hexa.NET.ImGui)
* [dear-imgui-rs](https://github.com/Latias94/dear-imgui-rs)
* [CImGui.jl](https://github.com/Gnimuc/CImGui.jl)
* [ImGui.NET](https://github.com/mellinoe/ImGui.NET) * [ImGui.NET](https://github.com/mellinoe/ImGui.NET)
* [Zig-ImGui](https://github.com/SpexGuy/Zig-ImGui)
* [nimgl/imgui](https://github.com/nimgl/imgui) * [nimgl/imgui](https://github.com/nimgl/imgui)
* [kotlin-imgui](https://github.com/Dominaezzz/kotlin-imgui) * [kotlin-imgui](https://github.com/Dominaezzz/kotlin-imgui)
* [CImGui.jl](https://github.com/Gnimuc/CImGui.jl)
* [odin-imgui](https://github.com/ThisDrunkDane/odin-imgui) * [odin-imgui](https://github.com/ThisDrunkDane/odin-imgui)
* [DerelictImgui](https://github.com/Extrawurst/DerelictImgui) * [DerelictImgui](https://github.com/Extrawurst/DerelictImgui)
* [BindBC-CimGui](https://github.com/MrcSnm/bindbc-cimgui) * [BindBC-CimGui](https://github.com/MrcSnm/bindbc-cimgui)

View File

@@ -2198,9 +2198,13 @@ function M.Parser()
local txt = table.concat(cdefs2,"\n") local txt = table.concat(cdefs2,"\n")
--string substitution --string substitution
if self.str_subst then if self.str_subst then
print("========== str_subst")
local nn
for k,v in pairs(self.str_subst) do for k,v in pairs(self.str_subst) do
txt = txt:gsub(k,v) txt,nn = txt:gsub(k,v)
print(k,"done times:",nn)
end end
print("========== str_subst end")
end end
--clean = default in constructor (implot3d) --clean = default in constructor (implot3d)
txt = txt:gsub("=%s*default","") txt = txt:gsub("=%s*default","")