From 73690ed525e266607d5de92a3f03e4a5c30196c2 Mon Sep 17 00:00:00 2001 From: Bradley Bell Date: Sun, 7 Dec 2014 19:01:55 -0800 Subject: [PATCH] always_inline d_debugbreak() so that debugger stops in the source instead of dxxerror.h --- common/include/dxxerror.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/include/dxxerror.h b/common/include/dxxerror.h index 89051328f..417116e53 100644 --- a/common/include/dxxerror.h +++ b/common/include/dxxerror.h @@ -63,6 +63,10 @@ void Error(const char *func, unsigned line, const char *fmt,...) __noreturn __at #endif /* Allow macro override */ + +#if defined __GNUC__ +__attribute__((always_inline)) +#endif static inline void d_debugbreak() { /* If NDEBUG, expand to nothing */