Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 20, 2009, 6:47:40 PM (15 years ago)
Author:
rgrieder
Message:

Small stuff:

  • Using a reference to the Shell in InGameConsole
  • Replaced the caller macro in the Shell with a template function
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/console/src/libraries/core/Shell.h

    r5781 r5969  
    132132            void exit();
    133133
     134            template <void (ShellListener::*F)()>
     135            void updateListeners()
     136            {
     137                for (std::list<ShellListener*>::const_iterator it = this->listeners_.begin(); it != this->listeners_.end(); )
     138                    ((*(it++))->*F)();
     139            }
     140
    134141            std::list<ShellListener*> listeners_;
    135142            InputBuffer* inputBuffer_;
Note: See TracChangeset for help on using the changeset viewer.