From 2f06c9bb47116ce2beac0a68aa4f52455c6007d1 Mon Sep 17 00:00:00 2001 From: kgv Date: Mon, 22 Mar 2021 00:27:36 +0300 Subject: [PATCH] dversion - add WebAssembly info --- src/Draw/Draw_BasicCommands.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Draw/Draw_BasicCommands.cxx b/src/Draw/Draw_BasicCommands.cxx index 138e8831c8..d9d84e3ff6 100644 --- a/src/Draw/Draw_BasicCommands.cxx +++ b/src/Draw/Draw_BasicCommands.cxx @@ -437,6 +437,12 @@ static Standard_Integer dversion(Draw_Interpretor& di, Standard_Integer, const c #else di << "Architecture: ARM 32-bit\n"; #endif +#elif defined(__EMSCRIPTEN__) +#if defined(__LP64__) + di << "Architecture: WASM 64-bit\n"; + #else + di << "Architecture: WASM 32-bit\n"; + #endif #else di << "Architecture: unrecognized\n"; #endif @@ -460,6 +466,8 @@ static Standard_Integer dversion(Draw_Interpretor& di, Standard_Integer, const c #elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__DragonFly__) #include di << "OS: BSD (BSD = " << BSD << ")\n"; +#elif defined(__EMSCRIPTEN__) + di << "OS: WebAssembly (Emscripten SDK " << __EMSCRIPTEN_major__ << "." << __EMSCRIPTEN_minor__ << "." << __EMSCRIPTEN_tiny__ << ")\n"; #else di << "OS: unrecognized\n"; #endif -- 2.39.5