Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 22, 2010, 2:51:06 PM (15 years ago)
Author:
rgrieder
Message:

3 build fixes for MSVC.

Location:
code/branches/consolecommands2/src/libraries/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/consolecommands2/src/libraries/core/ConsoleCommand.cc

    r6453 r6454  
    7878{
    7979    _SetConsoleCommand("BaseObject", "setName", &BaseObject::setName, (BaseObject*)0);
    80     _ConsoleCommand::_ConsoleCommandManipulator test = _ModifyConsoleCommand("BaseObject", "setName").setFunction(&BaseObject::setActive);
     80    _ConsoleCommand::_ConsoleCommandManipulator test(_ModifyConsoleCommand("BaseObject", "setName").setFunction(&BaseObject::setActive));
    8181
    8282    _ConsoleCommand::_ConsoleCommand(const std::string& group, const std::string& name, Functor* functor, State::Enum state) : Executor(functor, name), functionHeader_(functor->getHeaderIdentifier())
  • code/branches/consolecommands2/src/libraries/core/ConsoleCommand.h

    r6452 r6454  
    3333
    3434#include <boost/preprocessor/cat.hpp>
     35#include <boost/preprocessor/facilities/expand.hpp>
    3536
    3637#include "util/VA_NARGS.h"
     
    158159
    159160#define _SetConsoleCommand(...) \
    160     BOOST_PP_CAT(_SetConsoleCommand, ORXONOX_VA_NARGS(__VA_ARGS__))(__VA_ARGS__)
     161    BOOST_PP_EXPAND(BOOST_PP_CAT(_SetConsoleCommand, ORXONOX_VA_NARGS(__VA_ARGS__))(__VA_ARGS__))
    161162#define _SetConsoleCommand2(name, functionpointer) \
    162163    _SetConsoleCommandGeneric("", name, orxonox::createFunctor(functionpointer))
Note: See TracChangeset for help on using the changeset viewer.