Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 30, 2010, 7:52:33 PM (14 years ago)
Author:
landauf
Message:

pushFunction() (which explicitly adds a new level to the console command stack) was not forwarded to ConsoleCommandManipulator

also fixed a bug which was caused by pushFunction() with a subsequent call to setFunction(…) because it may have unexpectedly changed the functor of the lower stack levels. now pushFunction() not only copyconstructs the executor, but also the Functor (with a clone() function)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/consolecommands3/src/libraries/core/command/ConsoleCommand.h

    r7267 r7270  
    142142                        { if (this->command_) { this->command_->setFunction(executor, bForce); } return *this; }
    143143
     144                    inline ConsoleCommandManipulator& pushFunction()
     145                        { if (this->command_) { this->command_->pushFunction(); } return *this; }
    144146                    template <class F>
    145147                    inline ConsoleCommandManipulator& pushFunction(F function, bool bForce = false)
Note: See TracChangeset for help on using the changeset viewer.