diff options
author | crupest <crupest@outlook.com> | 2023-10-12 17:10:18 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-10-12 17:10:18 +0800 |
commit | 9a077caa6d3f7eb8255ae68916dccac9b50a4333 (patch) | |
tree | 486f5f01d5de8ff1b236029e1b955df1d70728a8 /src/platform/web/JsUtility.cpp | |
parent | 6fc14693d01f2be98b45d70405b16883607d4666 (diff) | |
download | cru-9a077caa6d3f7eb8255ae68916dccac9b50a4333.tar.gz cru-9a077caa6d3f7eb8255ae68916dccac9b50a4333.tar.bz2 cru-9a077caa6d3f7eb8255ae68916dccac9b50a4333.zip |
...
Diffstat (limited to 'src/platform/web/JsUtility.cpp')
-rw-r--r-- | src/platform/web/JsUtility.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/platform/web/JsUtility.cpp b/src/platform/web/JsUtility.cpp deleted file mode 100644 index b426bbda..00000000 --- a/src/platform/web/JsUtility.cpp +++ /dev/null @@ -1,11 +0,0 @@ -#include "cru/platform/web/JsUtility.h" - -namespace cru::platform::web { -bool IsNotNullAndInstanceOf(const emscripten::val& value, const emscripten::val& type) { - return !value.isNull() && !type.isNull() && value.instanceof(type); -} - -bool IsNotNullAndInstanceOf(const emscripten::val& value, const char* global_type) { - return IsNotNullAndInstanceOf(value, emscripten::val::global(global_type)); -} -} |