diff options
Diffstat (limited to 'src/Exceptions.cc')
-rw-r--r-- | src/Exceptions.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Exceptions.cc b/src/Exceptions.cc index 38fa005..44743fe 100644 --- a/src/Exceptions.cc +++ b/src/Exceptions.cc @@ -102,3 +102,12 @@ void Balau::ExitHelper(const String & msg, const char * fmt, ...) { ExitHelperInner(msg, NULL); } } + +void Balau::AssertHelperInner(const Balau::String & msg, const char * details) throw (Balau::GeneralException) { +#if defined(_MSC_VER) && defined(_DEBUG) + if (IsDebuggerPresent()) + __debugbreak(); + else +#endif + throw Balau::GeneralException(msg, details); +} |