Skip to content

Commit f7106f1

Browse files
committed
Comments about IMGUI_DISABLE_TEST_WINDOWS
ocornut/imgui@100d30a
1 parent 553a1c6 commit f7106f1

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/main/kotlin/imgui/imgui/demoDebugInfo.kt

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,23 @@ import imgui.ImGui.inputTextMultiline
109109
import imgui.ImGui.isMouseDoubleClicked
110110
import imgui.ImGui.newLine
111111

112-
112+
/**
113+
* Message to the person tempted to delete this file when integrating ImGui into their code base:
114+
* Do NOT remove this file from your project! It is useful reference code that you and other users will want to refer to.
115+
* Don't do it! Do NOT remove this file from your project! It is useful reference code that you and other users will want to refer to.
116+
* Everything in this file will be stripped out by the linker if you don't call ImGui::ShowTestWindow().
117+
* During development, you can call ImGui::ShowTestWindow() in your code to learn about various features of ImGui.
118+
* Removing this file from your project is hindering your access to documentation, likely leading you to poorer usage of the library.
119+
* During development, you can call ImGui::ShowTestWindow() in your code to learn about various features of ImGui. Have it wired in a debug menu!
120+
* Removing this file from your project is hindering access to documentation for everyone in your team, likely leading you to poorer usage of the library.
121+
*
122+
* Note that you can #define IMGUI_DISABLE_TEST_WINDOWS in imconfig.h for the same effect.
123+
* If you want to link core ImGui in your public builds but not those test windows, #define IMGUI_DISABLE_TEST_WINDOWS in imconfig.h and those functions will be empty.
124+
* For any other case, if you have ImGui available you probably want this to be available for reference and execution.
125+
*
126+
* Thank you,
127+
* -Your beloved friend, imgui_demo.cpp (that you won't delete)
128+
*/
113129
interface imgui_demoDebugInfo {
114130

115131
/** Create demo/test window.

0 commit comments

Comments
 (0)