Changeset 6454 for code/branches/consolecommands2
- Timestamp:
- Jan 22, 2010, 2:51:06 PM (15 years ago)
- Location:
- code/branches/consolecommands2/src/libraries
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands2/src/libraries/core/ConsoleCommand.cc
r6453 r6454 78 78 { 79 79 _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)); 81 81 82 82 _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 33 33 34 34 #include <boost/preprocessor/cat.hpp> 35 #include <boost/preprocessor/facilities/expand.hpp> 35 36 36 37 #include "util/VA_NARGS.h" … … 158 159 159 160 #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__)) 161 162 #define _SetConsoleCommand2(name, functionpointer) \ 162 163 _SetConsoleCommandGeneric("", name, orxonox::createFunctor(functionpointer)) -
code/branches/consolecommands2/src/libraries/util/VA_NARGS.h
r6452 r6454 32 32 */ 33 33 34 #include <boost/preprocessor/facilities/expand.hpp> 35 34 36 /** 35 37 @brief Returns the number of arguments passed to a variadic macro. Important: The number of arguments must be greater than zero (ORXONOX_VA_NARGS() returns 1). … … 42 44 43 45 #define ORXONOX_VA_NARGS_CONCAT(...) \ 44 ORXONOX_VA_NARGS_INTERN(__VA_ARGS__)46 BOOST_PP_EXPAND(ORXONOX_VA_NARGS_INTERN(__VA_ARGS__)) 45 47 46 48 #define ORXONOX_VA_NARGS_INTERN( \
Note: See TracChangeset
for help on using the changeset viewer.