Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3035 for code/trunk/src/core


Ignore:
Timestamp:
May 24, 2009, 12:36:48 AM (16 years ago)
Author:
landauf
Message:

get returnvalue shortcuts in CommandExecutor (for tolua)

Location:
code/trunk/src/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/core/CommandExecutor.cc

    r2662 r3035  
    109109    }
    110110
     111    MultiType CommandExecutor::getReturnValue()
     112    {
     113        return CommandExecutor::getEvaluation().getReturnvalue();
     114    }
     115
     116    std::string CommandExecutor::getReturnValueString()
     117    {
     118        return CommandExecutor::getEvaluation().getReturnvalue().getString();
     119    }
     120
    111121    std::string CommandExecutor::complete(const std::string& command)
    112122    {
  • code/trunk/src/core/CommandExecutor.h

    r2710 r3035  
    4444        public:
    4545            static bool execute(const std::string& command, bool useTcl = true); // tolua_export
     46            static MultiType getReturnValue();
     47            static std::string getReturnValueString(); // tolua_export
     48
    4649            static std::string complete(const std::string& command);
    4750            static std::string hint(const std::string& command);
Note: See TracChangeset for help on using the changeset viewer.