cpp2ffi: take care of CIMGUI_VARGS0

This commit is contained in:
sonoro1234
2025-11-14 09:42:56 +01:00
parent c44d649bf5
commit 363fb5869d
2 changed files with 2 additions and 2 deletions

View File

@@ -680,7 +680,7 @@ CIMGUI_API void igTextColored(const ImVec4_c col,const char* fmt,...)
#ifdef CIMGUI_VARGS0 #ifdef CIMGUI_VARGS0
CIMGUI_API void igTextColored0(const ImVec4_c col,const char* fmt) CIMGUI_API void igTextColored0(const ImVec4_c col,const char* fmt)
{ {
return igTextColored(ConvertToCPP_ImVec4(col),fmt); return igTextColored(col,fmt);
} }
#endif #endif
CIMGUI_API void igTextColoredV(const ImVec4_c col,const char* fmt,va_list args) CIMGUI_API void igTextColoredV(const ImVec4_c col,const char* fmt,va_list args)

View File

@@ -2944,7 +2944,7 @@ local function ImGui_f_implementation(def)
table.insert(outtab, "#ifdef CIMGUI_VARGS0\n") table.insert(outtab, "#ifdef CIMGUI_VARGS0\n")
table.insert(outtab, "CIMGUI_API".." "..def.ret.." "..def.ov_cimguiname.."0"..paramListWithoutDots(def.args).."\n") table.insert(outtab, "CIMGUI_API".." "..def.ret.." "..def.ov_cimguiname.."0"..paramListWithoutDots(def.args).."\n")
table.insert(outtab, "{\n") table.insert(outtab, "{\n")
table.insert(outtab, " return "..def.ov_cimguiname..paramListWithoutDots(def.call_args)..";\n") table.insert(outtab, " return "..def.ov_cimguiname..paramListWithoutDots(def.call_args_old)..";\n")
table.insert(outtab, "}\n") table.insert(outtab, "}\n")
table.insert(outtab, "#endif\n") table.insert(outtab, "#endif\n")
elseif def.nonUDT then elseif def.nonUDT then