Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 6, 2010, 3:05:53 PM (14 years ago)
Author:
rgrieder
Message:

Renamed FORCEINLINE macro to ORX_FORCEINLINE because of conflicts (resulting in a load of warnings with Ogre v1.7 and gcc) with OgrePlatform.h.

Location:
code/branches/ois_update/src/libraries/core
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ois_update/src/libraries/core/Identifier.h

    r7401 r7621  
    123123
    124124            /// Returns the unique ID of the class.
    125             FORCEINLINE unsigned int getClassID() const { return this->classID_; }
     125            ORX_FORCEINLINE unsigned int getClassID() const { return this->classID_; }
    126126
    127127            /// Returns the list of all existing objects of this class.
     
    486486    */
    487487    template <class T, class U>
    488     FORCEINLINE T orxonox_cast(U* source)
     488    ORX_FORCEINLINE T orxonox_cast(U* source)
    489489    {
    490490#ifdef ORXONOX_COMPILER_MSVC
  • code/branches/ois_update/src/libraries/core/OrxonoxClass.h

    r7401 r7621  
    136136                Returns NULL if the no pointer was found.
    137137            */
    138             FORCEINLINE void* getDerivedPointer(unsigned int classID)
     138            ORX_FORCEINLINE void* getDerivedPointer(unsigned int classID)
    139139            {
    140140                for (int i = this->objectPointers_.size() - 1; i >= 0; --i)
     
    147147
    148148            /// Version of getDerivedPointer with template
    149             template <class T> FORCEINLINE T* getDerivedPointer(unsigned int classID)
     149            template <class T> ORX_FORCEINLINE T* getDerivedPointer(unsigned int classID)
    150150            {   return static_cast<T*>(this->getDerivedPointer(classID));   }
    151151            /// Const version of getDerivedPointer with template
    152             template <class T> FORCEINLINE const T* getDerivedPointer(unsigned int classID) const
     152            template <class T> ORX_FORCEINLINE const T* getDerivedPointer(unsigned int classID) const
    153153            {   return const_cast<OrxonoxClass*>(this)->getDerivedPointer<T>(classID);   }
    154154
  • code/branches/ois_update/src/libraries/core/input/InputDevice.h

    r7271 r7621  
    184184    protected:
    185185        //! Common code for all button pressed events (updates pressed buttons list and calls the input states)
    186         FORCEINLINE void buttonPressed(ButtonTypeParam button)
     186        ORX_FORCEINLINE void buttonPressed(ButtonTypeParam button)
    187187        {
    188188            // check whether the button already is in the list (can happen when focus was lost)
     
    201201
    202202        //! Common code for all button released events (updates pressed buttons list and calls the input states)
    203         FORCEINLINE void buttonReleased(ButtonTypeParam button)
     203        ORX_FORCEINLINE void buttonReleased(ButtonTypeParam button)
    204204        {
    205205            // remove the button from the pressedButtons_ list
  • code/branches/ois_update/src/libraries/core/input/InputState.h

    r7401 r7621  
    176176    };
    177177
    178     FORCEINLINE void InputState::update(float dt)
     178    ORX_FORCEINLINE void InputState::update(float dt)
    179179    {
    180180        for (unsigned int i = 0; i < handlers_.size(); ++i)
     
    183183    }
    184184
    185     FORCEINLINE void InputState::update(float dt, unsigned int device)
     185    ORX_FORCEINLINE void InputState::update(float dt, unsigned int device)
    186186    {
    187187        switch (device)
     
    205205
    206206    template <typename EventType, class ButtonTypeParam>
    207     FORCEINLINE void InputState::buttonEvent(unsigned int device, ButtonTypeParam button)
     207    ORX_FORCEINLINE void InputState::buttonEvent(unsigned int device, ButtonTypeParam button)
    208208    {
    209209        assert(device < handlers_.size());
     
    216216    }
    217217
    218     FORCEINLINE void InputState::mouseMoved(IntVector2 abs, IntVector2 rel, IntVector2 clippingSize)
     218    ORX_FORCEINLINE void InputState::mouseMoved(IntVector2 abs, IntVector2 rel, IntVector2 clippingSize)
    219219    {
    220220        if (handlers_[mouseIndex_s] != NULL)
     
    222222    }
    223223
    224     FORCEINLINE void InputState::mouseScrolled(int abs, int rel)
     224    ORX_FORCEINLINE void InputState::mouseScrolled(int abs, int rel)
    225225    {
    226226        if (handlers_[mouseIndex_s] != NULL)
     
    228228    }
    229229
    230     FORCEINLINE void InputState::joyStickAxisMoved(unsigned int device, unsigned int axis, float value)
     230    ORX_FORCEINLINE void InputState::joyStickAxisMoved(unsigned int device, unsigned int axis, float value)
    231231    {
    232232        assert(device < handlers_.size());
Note: See TracChangeset for help on using the changeset viewer.