Mercurial > hg > orthanc-stone
comparison Resources/CodeGeneration/testWasmIntegrated/DefaultLibrary.js @ 499:baa9e1e932db bgo-commands-codegen
wasm + ts demonstrator WORKS!
author | bgo-osimis |
---|---|
date | Sun, 24 Feb 2019 20:22:56 +0100 |
parents | 6d62fc8a6988 |
children | f185cfcb72a0 |
comparison
equal
deleted
inserted
replaced
498:6d62fc8a6988 | 499:baa9e1e932db |
---|---|
3 mergeInto(LibraryManager.library, { | 3 mergeInto(LibraryManager.library, { |
4 // each time the Application updates its status, it may signal it through this method. i.e, to change the status of a button in the web interface | 4 // each time the Application updates its status, it may signal it through this method. i.e, to change the status of a button in the web interface |
5 // It needs to be put in this file so that the emscripten SDK linker knows where to find it. | 5 // It needs to be put in this file so that the emscripten SDK linker knows where to find it. |
6 SendFreeTextFromCppJS: function(statusUpdateMessage) { | 6 SendFreeTextFromCppJS: function(statusUpdateMessage) { |
7 var statusUpdateMessage_ = UTF8ToString(statusUpdateMessage); | 7 var statusUpdateMessage_ = UTF8ToString(statusUpdateMessage); |
8 SendFreeTextFromCpp(statusUpdateMessage_); | 8 window.SendFreeTextFromCpp(statusUpdateMessage_); |
9 }, | 9 }, |
10 SendMessageFromCppJS: function(statusUpdateMessage) { | 10 SendMessageFromCppJS: function(statusUpdateMessage) { |
11 var statusUpdateMessage_ = UTF8ToString(statusUpdateMessage); | 11 var statusUpdateMessage_ = UTF8ToString(statusUpdateMessage); |
12 SendMessageFromCpp(statusUpdateMessage_); | 12 SendMessageFromCpp(statusUpdateMessage_); |
13 } | 13 } |
14 }); | 14 }); |
15 |