Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 6, 2009, 1:55:05 PM (15 years ago)
Author:
landauf
Message:

Removed ambiguity between the EventName macro and the EventName class. The macro is now called FireEventName. (It did work before, but wasn't very nice ofc)

Location:
code/branches/core5/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/libraries/core/EventIncludes.h

    r5888 r5893  
    8282    @brief This macro is needed to fire an event with this name. The event name must previously be declared with @ref CreateEventName.
    8383*/   
    84 #define EventName(classname, name) \
     84#define FireEventName(classname, name) \
    8585    eventname##classname##name
    8686 
  • code/branches/core5/src/modules/pong/Pong.cc

    r5889 r5893  
    160160        {
    161161            if (player == this->getRightPlayer())
    162                 this->center_->fireEvent(EventName(PongCenterpoint, right));
     162                this->center_->fireEvent(FireEventName(PongCenterpoint, right));
    163163            else if (player == this->getLeftPlayer())
    164                 this->center_->fireEvent(EventName(PongCenterpoint, left));
     164                this->center_->fireEvent(FireEventName(PongCenterpoint, left));
    165165           
    166166            if (player)
Note: See TracChangeset for help on using the changeset viewer.