From b73fd0760ace3c057fa24a7517815fcab5e49581 Mon Sep 17 00:00:00 2001 From: Johann Muszynski Date: Mon, 23 Dec 2019 12:47:12 +0200 Subject: [PATCH] Add check for minimum compatible ImGui version --- imnodes.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/imnodes.cpp b/imnodes.cpp index d35af43..cbffe65 100755 --- a/imnodes.cpp +++ b/imnodes.cpp @@ -13,6 +13,13 @@ #define IMGUI_DEFINE_MATH_OPERATORS #include "imgui_internal.h" +// Check minimum ImGui version +#define MINIMUM_COMPATIBLE_IMGUI_VERSION 16401 +#if IMGUI_VERSION_NUM < MINIMUM_COMPATIBLE_IMGUI_VERSION +#error \ + "Minimum ImGui version requirement not met -- please use a newer version!" +#endif + #include #include #include