mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
emscripten - print errors (no exception handling)
This commit is contained in:
parent
8ada55ff3e
commit
b30b33e8a8
@ -1,13 +1,26 @@
|
||||
#include "exception.hpp"
|
||||
#include "utils.hpp"
|
||||
|
||||
#ifdef EMSCRIPTEN
|
||||
#include <iostream>
|
||||
#endif // EMSCRIPTEN
|
||||
|
||||
namespace ngcore
|
||||
{
|
||||
Exception :: Exception(const std::string& s)
|
||||
: m_what(s) {}
|
||||
: m_what(s) {
|
||||
#ifdef EMSCRIPTEN
|
||||
std::cout << "THROW Exception " << s << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
Exception :: Exception(const char* s)
|
||||
: m_what(s) {}
|
||||
: m_what(s) {
|
||||
#ifdef EMSCRIPTEN
|
||||
std::cout << "THROW Exception " << s << std::endl;
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
void ThrowException(const std::string & s)
|
||||
|
Loading…
Reference in New Issue
Block a user