|
@@ -44,6 +44,7 @@
|
|
|
#define _MKSTR(m_x) _STR(m_x)
|
|
|
#endif
|
|
|
|
|
|
+//should always inline no matter what
|
|
|
#ifndef _ALWAYS_INLINE_
|
|
|
|
|
|
#if defined(__GNUC__) && (__GNUC__ >= 4)
|
|
@@ -58,10 +59,17 @@
|
|
|
|
|
|
#endif
|
|
|
|
|
|
+//should always inline, except in some cases because it makes debugging harder
|
|
|
#ifndef _FORCE_INLINE_
|
|
|
+
|
|
|
+#ifdef DISABLE_FORCED_INLINE
|
|
|
+#define _FORCE_INLINE_ inline
|
|
|
+#else
|
|
|
#define _FORCE_INLINE_ _ALWAYS_INLINE_
|
|
|
#endif
|
|
|
|
|
|
+#endif
|
|
|
+
|
|
|
//custom, gcc-safe offsetof, because gcc complains a lot.
|
|
|
template <class T>
|
|
|
T *_nullptr() {
|