Explorar el Código

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

ocornut hace 10 años
padre
commit
f1f4d68f7f
Se han modificado 1 ficheros con 4 adiciones y 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()