macro processor: inline function

issue#70
Houtan Bastani 2019-06-25 11:12:33 +02:00
parent e5121176a9
commit cd9dfa64cb
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
2 changed files with 1 additions and 7 deletions

View File

@ -1117,12 +1117,6 @@ TrinaryOp::to_string() const noexcept
exit(EXIT_FAILURE);
}
string
Comprehension::to_string() const noexcept
{
return "[" + c_vars->to_string() + " in " + c_set->to_string() + " when " + c_when->to_string() + "]";
}
void
String::print(ostream &output, bool matlab_output) const noexcept
{

View File

@ -468,7 +468,7 @@ namespace macro
Environment &env_arg, const Tokenizer::location location_arg) :
Expression(env_arg, move(location_arg)),
c_vars{move(c_vars_arg)}, c_set{move(c_set_arg)}, c_when{move(c_when_arg)} { }
string to_string() const noexcept override;
inline string to_string() const noexcept override { return "[" + c_vars->to_string() + " in " + c_set->to_string() + " when " + c_when->to_string() + "]"; }
void print(ostream &output, bool matlab_output = false) const noexcept override;
BaseTypePtr eval() override;
};