Explorar o código

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

ocornut %!s(int64=10) %!d(string=hai) anos
pai
achega
f1f4d68f7f
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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()