From c606126c3efaec7e3fdf1283fc37dfb7140bee13 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Wed, 16 Aug 2006 23:41:36 +0000 Subject: small cleanup --- lib/base/object.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'lib/base/object.h') diff --git a/lib/base/object.h b/lib/base/object.h index adb5d67c..93989a67 100644 --- a/lib/base/object.h +++ b/lib/base/object.h @@ -25,6 +25,7 @@ public: virtual void Release()=0; }; +#ifndef SWIG struct oRefCount { volatile int count; @@ -37,7 +38,6 @@ struct oRefCount } }; -#ifndef SWIG #if defined(__mips__) #define DECLARE_REF(x) \ private: oRefCount ref; \ @@ -158,17 +158,14 @@ struct oRefCount } #endif #endif -#else +#else // SWIG #define DECLARE_REF(x) \ private: \ void AddRef(); \ void Release(); -#endif - -#ifdef SWIG -class Object -{ -}; -#endif + class Object + { + }; +#endif // SWIG #endif -- cgit v1.2.3