Mercurial > hg > orthanc-stone
comparison Deprecated/Resources/CodeGeneration/testWasmIntegrated/DefaultLibrary.js @ 1401:f6a2d46d2b76
moved CodeGeneration into Deprecated
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Wed, 29 Apr 2020 20:48:18 +0200 |
parents | Resources/CodeGeneration/testWasmIntegrated/DefaultLibrary.js@f185cfcb72a0 |
children |
comparison
equal
deleted
inserted
replaced
1400:419d0320c344 | 1401:f6a2d46d2b76 |
---|---|
1 // this file contains the JS method you want to expose to C++ code | |
2 | |
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 | |
5 // It needs to be put in this file so that the emscripten SDK linker knows where to find it. | |
6 SendFreeTextFromCppJS: function(statusUpdateMessage) { | |
7 var statusUpdateMessage_ = UTF8ToString(statusUpdateMessage); | |
8 window.SendFreeTextFromCpp(statusUpdateMessage_); | |
9 }, | |
10 SendMessageFromCppJS: function(statusUpdateMessage) { | |
11 var statusUpdateMessage_ = UTF8ToString(statusUpdateMessage); | |
12 window.SendMessageFromCpp(statusUpdateMessage_); | |
13 } | |
14 }); | |
15 |