diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-05-30 10:42:19 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-30 10:42:19 -0700 |
commit | 69b39b965f0b27cd1fd51c66eb94b0a8ac540021 (patch) | |
tree | dee1d60b2817c73ff11f6f1c80553957e2beb515 | |
parent | dc7a8850f18e722f03d1c02abb1518e6b80238a5 (diff) |
implement std::exception::what()
-rw-r--r-- | system/include/libcxx/exception | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/include/libcxx/exception b/system/include/libcxx/exception index 4b5770b7..102b10d6 100644 --- a/system/include/libcxx/exception +++ b/system/include/libcxx/exception @@ -91,8 +91,8 @@ class _LIBCPP_EXCEPTION_ABI exception { public: _LIBCPP_INLINE_VISIBILITY exception() _NOEXCEPT {} - virtual ~exception() _NOEXCEPT {}; // XXX EMSCRIPTEN inline in destructor - virtual const char* what() const _NOEXCEPT; + virtual ~exception() _NOEXCEPT {} // XXX EMSCRIPTEN - implement in header + virtual const char* what() const _NOEXCEPT { return "std::exception"; } // XXX EMSCRIPTEN - implement in header }; class _LIBCPP_EXCEPTION_ABI bad_exception |