Mercurial > hg > orthanc-stone
comparison Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp @ 1827:21ccc00839f7 StoneWebViewer-2.0
upgrade to Emscripten 2.0.23
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 27 May 2021 11:05:59 +0200 |
parents | a56bf4c534ef |
children | 023cce3d7844 |
comparison
equal
deleted
inserted
replaced
1825:d6b83b4cedcd | 1827:21ccc00839f7 |
---|---|
3480 return stringBuffer_.c_str(); | 3480 return stringBuffer_.c_str(); |
3481 } | 3481 } |
3482 | 3482 |
3483 | 3483 |
3484 EMSCRIPTEN_KEEPALIVE | 3484 EMSCRIPTEN_KEEPALIVE |
3485 void LoadStoneWebViewerVersion() | 3485 const char* GetStoneWebViewerVersion() |
3486 { | 3486 { |
3487 try | 3487 return STONE_WEB_VIEWER_VERSION; |
3488 { | 3488 } |
3489 stringBuffer_.assign(STONE_WEB_VIEWER_VERSION); | 3489 |
3490 } | 3490 |
3491 EXTERN_CATCH_EXCEPTIONS; | 3491 EMSCRIPTEN_KEEPALIVE |
3492 const char* GetEmscriptenVersion() | |
3493 { | |
3494 // WARNING - "static" is important, otherwise the string would be | |
3495 // freed when returning to JavaScript | |
3496 static const std::string EMSCRIPTEN_VERSION = ( | |
3497 boost::lexical_cast<std::string>(__EMSCRIPTEN_major__) + "." + | |
3498 boost::lexical_cast<std::string>(__EMSCRIPTEN_minor__) + "." + | |
3499 boost::lexical_cast<std::string>(__EMSCRIPTEN_tiny__)); | |
3500 return EMSCRIPTEN_VERSION.c_str(); | |
3492 } | 3501 } |
3493 | 3502 |
3494 | 3503 |
3495 EMSCRIPTEN_KEEPALIVE | 3504 EMSCRIPTEN_KEEPALIVE |
3496 void LoadStudyTags(int i) | 3505 void LoadStudyTags(int i) |