diff --git a/src/PhGui.cpp b/src/PhGui.cpp index a093212..1905267 100644 --- a/src/PhGui.cpp +++ b/src/PhGui.cpp @@ -5,12 +5,12 @@ #include #include -#define DISABLED_COND(cond, code...) \ +#define DISABLED_COND(cond, ...) \ { \ bool Disabled = (cond); \ if (Disabled) \ ImGui::BeginDisabled(); \ - code if (Disabled) ImGui::EndDisabled(); \ + __VA_ARGS__ if (Disabled) ImGui::EndDisabled(); \ }