fix variadic macro

This commit is contained in:
2025-03-29 16:53:51 +01:00
parent 7ecd47f20c
commit e2a787ab2f

View File

@@ -5,12 +5,12 @@
#include <random> #include <random>
#include <string> #include <string>
#define DISABLED_COND(cond, code...) \ #define DISABLED_COND(cond, ...) \
{ \ { \
bool Disabled = (cond); \ bool Disabled = (cond); \
if (Disabled) \ if (Disabled) \
ImGui::BeginDisabled(); \ ImGui::BeginDisabled(); \
code if (Disabled) ImGui::EndDisabled(); \ __VA_ARGS__ if (Disabled) ImGui::EndDisabled(); \
} }