Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 1, 2009, 10:20:02 PM (15 years ago)
Author:
rgrieder
Message:

Fixed a bug when using the LINE macro in Game.h
If you want to concatenate LINE to form a variable name, use:
MACRO_CONCATENATE(dummyvar##myParam1, LINE)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/Game.h

    r2927 r2946  
    4444
    4545#define AddGameState(classname, name) \
    46     static bool bGameStateDummy_##classname##__LINE__ = orxonox::Game::addGameState(new classname(name))
     46    static bool MACRO_CONCATENATE(bGameStateDummy_##classname, __LINE__) = orxonox::Game::addGameState(new classname(name))
    4747
    4848namespace orxonox
Note: See TracChangeset for help on using the changeset viewer.