Mercurial > hg > orthanc-stone
comparison Platforms/Wasm/WasmWebService.h @ 255:65562a28fe05 am-2
fixes for WASM
author | am@osimis.io |
---|---|
date | Tue, 03 Jul 2018 13:19:56 +0200 |
parents | 8ff70c04c6df |
children | 9afafb192180 |
comparison
equal
deleted
inserted
replaced
254:abc1c6231947 | 255:65562a28fe05 |
---|---|
21 public: | 21 public: |
22 static WasmWebService& GetInstance() | 22 static WasmWebService& GetInstance() |
23 { | 23 { |
24 if (broker_ == NULL) | 24 if (broker_ == NULL) |
25 { | 25 { |
26 printf("WasmWebService::GetInstance(): broker not initialized\n"); | |
26 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); | 27 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); |
27 } | 28 } |
28 static WasmWebService instance(*broker_); | 29 static WasmWebService instance(*broker_); |
29 return instance; | 30 return instance; |
30 } | 31 } |