Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5162 in orxonox.OLD for trunk/src/lib/shell/shell_command.h


Ignore:
Timestamp:
Sep 5, 2005, 10:29:03 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: more elaborate and MUCH easier through Macro-definition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell_command.h

    r5161 r5162  
    2121// FORWARD DECLARATION
    2222template<class T> class tList;
     23
     24#define SHELL_COMMAND(command, class, function) \
     25        ShellCommand<class>* shell_command_##class##_##command = ShellCommand<class>::registerCommand(#command, #class, &class::function)
    2326
    2427
Note: See TracChangeset for help on using the changeset viewer.