Browse Source

Prevent imgui_internal.h from being included without imgui.h (piles of errors)

ocornut 10 năm trước cách đây
mục cha
commit
f1f4d68f7f
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      imgui_internal.h

+ 4 - 0
imgui_internal.h

@@ -7,6 +7,10 @@
 
 #pragma once
 
+#ifndef IMGUI_VERSION
+#error Must include imgui.h before imgui_internal.h
+#endif
+
 #include <stdio.h>      // FILE*
 #include <math.h>       // sqrtf()