소스 검색

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

ocornut 10 년 전
부모
커밋
f1f4d68f7f
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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()