Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 25, 2008, 12:51:29 AM (16 years ago)
Author:
landauf
Message:

some changes in commandexecutor and tclbind, but there's still a bug in the parameter evaluation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/console/src/core/CommandExecutor.cc

    r1149 r1187  
    270270    }
    271271
     272    bool CommandEvaluation::hasReturnvalue() const
     273    {
     274        if (this->state_ == CS_Shortcut_Params || this->state_ == CS_Shortcut_Finished)
     275        {
     276            if (this->shortcut_)
     277                return this->shortcut_->hasReturnvalue();
     278        }
     279        else if (this->state_ == CS_Function_Params || this->state_ == CS_Function_Finished)
     280        {
     281            if (this->function_)
     282                return this->function_->hasReturnvalue();
     283        }
     284
     285        return MT_null;
     286    }
     287
    272288    MultiTypeMath CommandEvaluation::getReturnvalue() const
    273289    {
Note: See TracChangeset for help on using the changeset viewer.