Mercurial > hg > orthanc-stone
comparison Platforms/Wasm/stone-framework-loader.ts @ 666:daf43666bbc2
removed printf override for printf, keep it bare to metal
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Wed, 15 May 2019 15:42:49 +0200 |
parents | 70992b38aa8a |
children |
comparison
equal
deleted
inserted
replaced
665:419e5662d7a5 | 666:daf43666bbc2 |
---|---|
79 Logger.defaultLogger.debug('WebAssembly is ready'); | 79 Logger.defaultLogger.debug('WebAssembly is ready'); |
80 Framework.singleton_ = new Framework(verbose); | 80 Framework.singleton_ = new Framework(verbose); |
81 callback(); | 81 callback(); |
82 } | 82 } |
83 ], | 83 ], |
84 print: function(text : string) { | |
85 Logger.defaultLogger.infoFromCpp(text); | |
86 }, | |
87 printErr: function(text : string) { | |
88 Logger.defaultLogger.errorFromCpp(text); | |
89 }, | |
90 totalDependencies: 0 | 84 totalDependencies: 0 |
91 }; | 85 }; |
92 | 86 |
93 // Dynamic loading of the JavaScript wrapper around WebAssembly | 87 // Dynamic loading of the JavaScript wrapper around WebAssembly |
94 var script = document.createElement('script'); | 88 var script = document.createElement('script'); |