diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2014-06-19 15:38:02 -0700 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2014-06-19 15:38:02 -0700 |
commit | c83a8a951cce9b7ed541c293993f708f720bf28d (patch) | |
tree | e2c92a5778de9829eef0b03bb49bca4acdba2396 /src/Exceptions.cc | |
parent | 948dd878a4060bac728f0af1cf7c0d0048ddace0 (diff) |
Finishing up basic curl integration and adding a basic DownloadTask.
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); +} |