From 6aa3f1decd0d7c9f76781cf673a46250423592d4 Mon Sep 17 00:00:00 2001 From: Victor Bombi Date: Thu, 4 Feb 2021 17:05:55 +0100 Subject: [PATCH] cpp2ffi: const char* versions of ImStr take now a postfix _Strv --- generator/cpp2ffi.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/cpp2ffi.lua b/generator/cpp2ffi.lua index 2d4f848..42f5a92 100644 --- a/generator/cpp2ffi.lua +++ b/generator/cpp2ffi.lua @@ -829,7 +829,7 @@ local function ADDIMSTR_S(FP) defT2.call_args = caar --:gsub("ImStr%(([^%(%)]+)%)","%1") --unwrap ------------------ defT2.signature = defT.signature:gsub("ImStr","const char*") --.."_S" - defT2.ov_cimguiname = "S"..defT2.ov_cimguiname + defT2.ov_cimguiname = defT2.ov_cimguiname .. "_Strv" defT2.isIMSTR_S = 1 -- check there is not an equal version in imgui_stname local doadd = true