/[ascend]/trunk/pygtk/instance.cpp
ViewVC logotype

Diff of /trunk/pygtk/instance.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1375 by jpye, Tue Mar 27 13:17:54 2007 UTC revision 1376 by jpye, Thu Apr 5 06:53:08 2007 UTC
# Line 516  Instanc::isPlottable() const{ Line 516  Instanc::isPlottable() const{
516    
517  const enum set_kind  const enum set_kind
518  Instanc::getSetType() const{  Instanc::getSetType() const{
519      if(!isSet() || (!isConst() && !isDefined())){      if(!isSet())throw runtime_error("Not a set");
520          ERROR_REPORTER_NOLINE(ASC_USER_ERROR,"Variable '%s' is not set-valued or not defined",getName().toString());      if(!isConst() && !isDefined()){
521            stringstream ss;
522            ss << "Value of set '" << getName().toString() <<  "' is not defined";
523            throw runtime_error(ss.str());
524      }      }
525        if(SetAtomList(i)==NULL)return empty_set;
526      return SetKind(SetAtomList(i));      return SetKind(SetAtomList(i));
527  }  }
528    

Legend:
Removed from v.1375  
changed lines
  Added in v.1376

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22