Mercurial > hg > orthanc
comparison OrthancFramework/Resources/CMake/WebAssembly/ArithmeticTests/Run2.cpp @ 4044:d25f4c0fa160 framework
splitting code into OrthancFramework and OrthancServer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 10 Jun 2020 20:30:34 +0200 |
parents | Resources/WebAssembly/ArithmeticTests/Run2.cpp@04873915beaf |
children |
comparison
equal
deleted
inserted
replaced
4043:6c6239aec462 | 4044:d25f4c0fa160 |
---|---|
1 #include <iostream> | |
2 #include <emscripten/emscripten.h> | |
3 | |
4 extern "C" | |
5 { | |
6 void EMSCRIPTEN_KEEPALIVE Run2() | |
7 { | |
8 // This stuff is not properly discovered by DCMTK 3.6.2 configuration scripts | |
9 std::cerr << std::endl << std::endl; | |
10 std::cerr << "/**" << std::endl; | |
11 std::cerr << "#define SIZEOF_CHAR " << sizeof(char) << std::endl; | |
12 std::cerr << "#define SIZEOF_DOUBLE " << sizeof(double) << std::endl; | |
13 std::cerr << "#define SIZEOF_FLOAT " << sizeof(float) << std::endl; | |
14 std::cerr << "#define SIZEOF_INT " << sizeof(int) << std::endl; | |
15 std::cerr << "#define SIZEOF_LONG " << sizeof(long) << std::endl; | |
16 std::cerr << "#define SIZEOF_SHORT " << sizeof(short) << std::endl; | |
17 std::cerr << "#define SIZEOF_VOID_P " << sizeof(void*) << std::endl; | |
18 std::cerr << "#define C_CHAR_UNSIGNED " << (!std::is_signed<char>()) << std::endl; | |
19 std::cerr << "**/" << std::endl; | |
20 std::cerr << std::endl << std::endl; | |
21 } | |
22 } |