Merge branch 'echo-expression' of github.com:openscad/openscad into echo-expression
This commit is contained in:
commit
723eeadd0d
1 changed files with 1 additions and 8 deletions
|
|
@ -451,16 +451,9 @@ ValuePtr Echo::evaluate(const Context *context) const
|
|||
std::stringstream msg;
|
||||
EvalContext echo_context(context, this->arguments);
|
||||
msg << "ECHO: " << echo_context;
|
||||
|
||||
ValuePtr result = expr ? expr->evaluate(context) : ValuePtr::undefined;
|
||||
|
||||
if (expr) {
|
||||
if (echo_context.numArgs()) msg << ", ";
|
||||
msg << result->toEchoString();
|
||||
}
|
||||
|
||||
PRINTB("%s", msg.str());
|
||||
|
||||
ValuePtr result = expr ? expr->evaluate(context) : ValuePtr::undefined;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue