mirror of
https://github.com/cimgui/cimgui.git
synced 2025-11-30 21:51:40 +00:00
cpp2ffi: take care of CIMGUI_VARGS0
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user