comparison OrthancFramework/Resources/CMake/WebAssembly/ArithmeticTests/app.js @ 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/app.js@04873915beaf
children
comparison
equal deleted inserted replaced
4043:6c6239aec462 4044:d25f4c0fa160
1 function Initialize()
2 {
3 Module.ccall('Run2', // name of C function
4 null, // return type
5 [], // argument types
6 []);
7
8 Module.ccall('Run', // name of C function
9 'number', // return type
10 [], // argument types
11 []);
12 }
13
14
15 var Module = {
16 preRun: [],
17 postRun: [ Initialize ],
18 print: function(text) {
19 console.log(text);
20 },
21 printErr: function(text) {
22 if (text != 'Calling stub instead of signal()')
23 {
24 document.getElementById("stderr").textContent += text + '\n';
25 }
26 },
27 totalDependencies: 0
28 };
29
30
31 if (!('WebAssembly' in window)) {
32 alert('Sorry, your browser does not support WebAssembly :(');
33 } else {
34 }