summaryrefslogtreecommitdiff
path: root/indra/llcommon
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2016-08-18 11:06:51 -0400
committerNat Goodspeed <nat@lindenlab.com>2016-08-18 11:06:51 -0400
commitc7bf8af6378a54c3d03e77b161b7ba3b36186576 (patch)
tree4e68e1868d4bc86f9ac27114dcea24af88e78a86 /indra/llcommon
parent0eac1f41f68bd2cd3b7e73db9eb96c690507b448 (diff)
MAINT-5011: Use BOOST_CURRENT_FUNCTION instead of __PRETTY_FUNCTION__
since Visual Studio doesn't know __PRETTY_FUNCTION__, and Boost already has a portable macro to Do The Right Thing.
Diffstat (limited to 'indra/llcommon')
-rw-r--r--indra/llcommon/llexception.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/llcommon/llexception.h b/indra/llcommon/llexception.h
index 2a0f5e79eb..384b2271fb 100644
--- a/indra/llcommon/llexception.h
+++ b/indra/llcommon/llexception.h
@@ -15,6 +15,7 @@
#include <stdexcept>
#include <boost/exception/exception.hpp>
#include <boost/throw_exception.hpp>
+#include <boost/current_function.hpp>
// "Found someone who can comfort me
// But there are always exceptions..."
@@ -71,13 +72,13 @@ struct LLContinueError: public LLException
/// Call this macro from a catch (...) clause
#define CRASH_ON_UNHANDLED_EXCEPTION() \
- crash_on_unhandled_exception_(__FILE__, __LINE__, __PRETTY_FUNCTION__)
+ crash_on_unhandled_exception_(__FILE__, __LINE__, BOOST_CURRENT_FUNCTION)
void crash_on_unhandled_exception_(const char*, int, const char*);
/// Call this from a catch (const LLContinueError&) clause, or from a catch
/// (...) clause in which you do NOT want the viewer to crash.
#define LOG_UNHANDLED_EXCEPTION() \
- log_unhandled_exception_(__FILE__, __LINE__, __PRETTY_FUNCTION__)
+ log_unhandled_exception_(__FILE__, __LINE__, BOOST_CURRENT_FUNCTION)
void log_unhandled_exception_(const char*, int, const char*);
#endif /* ! defined(LL_LLEXCEPTION_H) */