fix variadic macro
This commit is contained in:
@@ -5,12 +5,12 @@
|
||||
#include <random>
|
||||
#include <string>
|
||||
|
||||
#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(); \
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user