Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 17, 2010, 10:04:43 PM (15 years ago)
Author:
rgrieder
Message:

Removed FORCEINLINE from Singleton.h: There seems to be unexpected problems when a Singleton fails to load.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/util/Singleton.h

    r6746 r6751  
    4949    public:
    5050        //! Returns a reference to the singleton instance
    51         FORCEINLINE static T& getInstance()
     51        static T& getInstance()
    5252        {
    5353            assert(T::singletonPtr_s != NULL);
     
    5656
    5757        //! Tells whether the singleton has been created
    58         FORCEINLINE static bool exists()
     58        static bool exists()
    5959        {
    6060            return (T::singletonPtr_s != NULL);
     
    6262
    6363        //! Update method called by ClassSingletonManager (if used)
    64         FORCEINLINE void preUpdateSingleton(const Clock& time) { static_cast<T*>(T::singletonPtr_s)->preUpdate(time); }
     64        void preUpdateSingleton(const Clock& time) { static_cast<T*>(T::singletonPtr_s)->preUpdate(time); }
    6565        //! Empty update method for the static polymorphism
    66         FORCEINLINE void preUpdate(const Clock& time) { }
     66        void preUpdate(const Clock& time) { }
    6767        //! Update method called by ClassSingletonManager (if used)
    68         FORCEINLINE void postUpdateSingleton(const Clock& time) { static_cast<T*>(T::singletonPtr_s)->postUpdate(time); }
     68        void postUpdateSingleton(const Clock& time) { static_cast<T*>(T::singletonPtr_s)->postUpdate(time); }
    6969        //! Empty update method for the static polymorphism
    70         FORCEINLINE void postUpdate(const Clock& time) { }
     70        void postUpdate(const Clock& time) { }
    7171
    7272    protected:
Note: See TracChangeset for help on using the changeset viewer.