- Timestamp:
- Apr 6, 2015, 10:00:37 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core7/src/libraries/core/command/ConsoleCommandIncludes.h
r10347 r10348 264 264 /// Internal macro 265 265 #define SetConsoleCommandGeneric(group, name, functor) \ 266 static orxonox::ConsoleCommand& BOOST_PP_CAT(__consolecommand_, __UNIQUE_NUMBER__) = (* orxonox::createConsoleCommand(group, name, orxonox::createExecutor(functor)))266 static orxonox::ConsoleCommand& BOOST_PP_CAT(__consolecommand_, __UNIQUE_NUMBER__) = (*new orxonox::ConsoleCommand(group, name, orxonox::createExecutor(functor))) 267 267 268 268 … … 299 299 /// Internal macro 300 300 #define DeclareConsoleCommandGeneric(group, name, functor) \ 301 static orxonox::ConsoleCommand& BOOST_PP_CAT(__consolecommand_, __UNIQUE_NUMBER__) = (* orxonox::createConsoleCommand(group, name, orxonox::createExecutor(functor), false))301 static orxonox::ConsoleCommand& BOOST_PP_CAT(__consolecommand_, __UNIQUE_NUMBER__) = (*new orxonox::ConsoleCommand(group, name, orxonox::createExecutor(functor), false)) 302 302 303 303 304 304 namespace orxonox 305 305 { 306 /**307 @brief Creates a new ConsoleCommand.308 @param name The name of the command309 @param executor The executor of the command310 @param bInitialized If true, the command is ready to be executed, otherwise it has to be activated first.311 */312 inline ConsoleCommand* createConsoleCommand(const std::string& name, const ExecutorPtr& executor, bool bInitialized = true)313 { return new ConsoleCommand("", name, executor, bInitialized); }314 /**315 @brief Creates a new ConsoleCommand.316 @param group The group of the command317 @param name The name of the command318 @param executor The executor of the command319 @param bInitialized If true, the command is ready to be executed, otherwise it has to be activated first.320 */321 inline ConsoleCommand* createConsoleCommand(const std::string& group, const std::string& name, const ExecutorPtr& executor, bool bInitialized = true)322 { return new ConsoleCommand(group, name, executor, bInitialized); }323 324 325 306 /** 326 307 @brief Returns a manipulator for a command with the given name.
Note: See TracChangeset
for help on using the changeset viewer.