Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7564


Ignore:
Timestamp:
Oct 19, 2010, 11:43:25 PM (14 years ago)
Author:
rgrieder
Message:

Renamed all symbols called "check" because of macro collisions on OS X.
Inserted something like an assert in btGjkPairDetector.cpp with the hope that I don't have to modify that 'check' there.

Location:
code/branches/ois_update/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ois_update/src/external/bullet/BulletCollision/NarrowPhaseCollision/btGjkPairDetector.cpp

    r5781 r7564  
    3838int gNumGjkChecks = 0;
    3939
     40#ifdef check
     41struct CompilerError
     42{
     43    void CompilerError() {}
     44};
     45#endif
    4046
    4147
  • code/branches/ois_update/src/libraries/core/Super.h

    r7559 r7564  
    9494        struct SuperFunctionCondition<functionnumber, T, 0, templatehack2> \
    9595        { \
    96             static void check() \
     96            static void verify() \
    9797            { \
    9898                SuperFunctionCondition<functionnumber, T, 0, templatehack2>::apply(static_cast<T*>(0)); \
    99                 SuperFunctionCondition<functionnumber + 1, T, 0, templatehack2>::check(); \
     99                SuperFunctionCondition<functionnumber + 1, T, 0, templatehack2>::verify(); \
    100100            } \
    101101            \
     
    132132        struct SuperFunctionCondition<functionnumber, baseclass, 0, templatehack2> \
    133133        { \
    134             static void check() \
    135             { \
    136                 SuperFunctionCondition<functionnumber + 1, baseclass, 0, templatehack2>::check(); \
     134            static void verify() \
     135            { \
     136                SuperFunctionCondition<functionnumber + 1, baseclass, 0, templatehack2>::verify(); \
    137137            } \
    138138        };
     
    150150        struct SuperFunctionCondition<functionnumber, T, 0, templatehack2>
    151151        {
    152             static void check()
     152            static void verify()
    153153            {
    154154                // This call to the apply-function is the whole check. By calling the function with
     
    156156                SuperFunctionCondition<functionnumber, T, 0, templatehack2>::apply(static_cast<T*>(0));
    157157
    158                 // Go go the check for of next super-function (functionnumber + 1)
    159                 SuperFunctionCondition<functionnumber + 1, T, 0, templatehack2>::check();
     158                // Go go the verify for of next super-function (functionnumber + 1)
     159                SuperFunctionCondition<functionnumber + 1, T, 0, templatehack2>::verify();
    160160            }
    161161
     
    202202        struct SuperFunctionCondition<functionnumber, baseclass, 0, templatehack2> \
    203203        { \
    204             // The check function acts like the fallback - it advances to the check for the next super-function (functionnumber + 1)
    205             static void check() \
    206             { \
    207                 SuperFunctionCondition<functionnumber + 1, baseclass, 0, templatehack2>::check(); \
     204            // The verify function acts like the fallback - it advances to the check for the next super-function (functionnumber + 1)
     205            static void verify() \
     206            { \
     207                SuperFunctionCondition<functionnumber + 1, baseclass, 0, templatehack2>::verify(); \
    208208            } \
    209209        };
     
    303303        struct SuperFunctionCondition
    304304        {
    305             static void check() {}
     305            static void verify() {}
    306306        };
    307307
     
    338338            struct SuperFunctionCondition<functionnumber, T, templatehack1, templatehack2> \
    339339            { \
    340                 static void check() \
     340                static void verify() \
    341341                { \
    342                     SuperFunctionCondition<functionnumber + 1, T, templatehack1, templatehack2>::check(); \
     342                    SuperFunctionCondition<functionnumber + 1, T, templatehack1, templatehack2>::verify(); \
    343343                } \
    344344            }; \
     
    421421            // If this function gets called, the header-file of the super function is not
    422422            // included, so this fallback template (templatehack not specialized) is used
    423             static void check()
     423            static void verify()
    424424            {
    425425                // Calls the condition-check of the next super-function (functionnumber + 1)
    426                 SuperFunctionCondition<functionnumber + 1, T, templatehack1, templatehack2>::check();
     426                SuperFunctionCondition<functionnumber + 1, T, templatehack1, templatehack2>::verify();
    427427            }
    428428        };
     
    574574        virtual void createSuperFunctionCaller() const
    575575        {
    576             //SuperFunctionCondition<0, T, 0, 0>::check();
     576            //SuperFunctionCondition<0, T, 0, 0>::verify();
    577577        }
    578578
  • code/branches/ois_update/src/modules/questsystem/QuestEffect.cc

    r7456 r7564  
    6868    /*static*/ bool QuestEffect::invokeEffects(PlayerInfo* player, std::list<QuestEffect*> & effects)
    6969    {
    70         bool check = true;
     70        bool temp = true;
    7171
    7272        COUT(4) << "Invoking QuestEffects on player: " << player << " ."  << std::endl;
    7373
    7474        for (std::list<QuestEffect*>::iterator effect = effects.begin(); effect != effects.end(); effect++)
    75             check = check && (*effect)->invoke(player);
     75            temp = temp && (*effect)->invoke(player);
    7676
    77         return check;
     77        return temp;
    7878    }
    7979
  • code/branches/ois_update/src/modules/questsystem/QuestEffectBeacon.cc

    r7484 r7564  
    154154        COUT(4) << "QuestEffectBeacon executed on player: " << player << " ." << std::endl;
    155155
    156         bool check = QuestEffect::invokeEffects(player, this->effects_); // Invoke the QuestEffects on the PlayerInfo.
    157         if(check)
     156        bool temp = QuestEffect::invokeEffects(player, this->effects_); // Invoke the QuestEffects on the PlayerInfo.
     157        if(temp)
    158158        {
    159159            this->decrementTimes(); // Decrement the number of times the beacon can be used.
  • code/branches/ois_update/src/modules/questsystem/effects/AddReward.cc

    r7456 r7564  
    105105        COUT(5) << "AddReward on player: " << player << " ." << std::endl;
    106106
    107         bool check = true;
     107        bool temp = true;
    108108        for ( std::list<Rewardable*>::iterator reward = this->rewards_.begin(); reward != this->rewards_.end(); ++reward )
    109             check = check && (*reward)->reward(player);
     109            temp = temp && (*reward)->reward(player);
    110110
    111111        COUT(4) << "Rewardable successfully added to player." << player << " ." << std::endl;
    112112
    113         return check;
     113        return temp;
    114114    }
    115115
Note: See TracChangeset for help on using the changeset viewer.