Skip to content

Commit 07be017

Browse files
ypujanteocornut
authored andcommitted
Demo: added emscripten version. (#7915)
1 parent 4832027 commit 07be017

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

imgui_demo.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ Index of this file:
116116
#if !defined(_MSC_VER) || _MSC_VER >= 1800
117117
#include <inttypes.h> // PRId64/PRIu64, not avail in some MinGW headers.
118118
#endif
119+
#ifdef __EMSCRIPTEN__
120+
#include <emscripten/version.h> // __EMSCRIPTEN_major__ etc.
121+
#endif
119122

120123
// Visual Studio warnings
121124
#ifdef _MSC_VER
@@ -7688,6 +7691,7 @@ void ImGui::ShowAboutWindow(bool* p_open)
76887691
#endif
76897692
#ifdef __EMSCRIPTEN__
76907693
ImGui::Text("define: __EMSCRIPTEN__");
7694+
ImGui::Text("Emscripten: %d.%d.%d", __EMSCRIPTEN_major__, __EMSCRIPTEN_minor__, __EMSCRIPTEN_tiny__);
76917695
#endif
76927696
ImGui::Separator();
76937697
ImGui::Text("io.BackendPlatformName: %s", io.BackendPlatformName ? io.BackendPlatformName : "NULL");

0 commit comments

Comments
 (0)