Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 28, 2010, 6:35:49 PM (14 years ago)
Author:
rgrieder
Message:

Macro expansion is not clearly defined in the C++ standard unfortunately. So different compilers treat stuff differently.
This fixes DeclareConsoleCommand on MSVC.

File:
1 edited

Legend:

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

    r7236 r7239  
    5555
    5656#define DeclareConsoleCommand(...) \
    57     BOOST_PP_CAT(DeclareConsoleCommand, ORXONOX_VA_NARGS(__VA_ARGS__))(__VA_ARGS__)
     57    BOOST_PP_EXPAND(BOOST_PP_CAT(DeclareConsoleCommand, ORXONOX_VA_NARGS(__VA_ARGS__))(__VA_ARGS__))
    5858#define DeclareConsoleCommand2(name, functionpointer) \
    5959    DeclareConsoleCommandGeneric("", name, orxonox::createFunctor(functionpointer))
Note: See TracChangeset for help on using the changeset viewer.