comparison Resources/WebAssembly/ArithmeticTests/Run2.cpp @ 2510:04873915beaf

configuration of DCMTK for WebAssembly
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 28 Mar 2018 14:14:37 +0200
parents
children
comparison
equal deleted inserted replaced
2509:9d9f2d088dce 2510:04873915beaf
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 }