mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-13 17:48:34 +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 "exception.hpp"
|
||||||
#include "utils.hpp"
|
#include "utils.hpp"
|
||||||
|
|
||||||
|
#ifdef EMSCRIPTEN
|
||||||
|
#include <iostream>
|
||||||
|
#endif // EMSCRIPTEN
|
||||||
|
|
||||||
namespace ngcore
|
namespace ngcore
|
||||||
{
|
{
|
||||||
Exception :: Exception(const std::string& s)
|
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)
|
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)
|
void ThrowException(const std::string & s)
|
||||||
|
Loading…
Reference in New Issue
Block a user