Skip to content

Commit

Permalink
DIRECTOR: Lingo: Enhanced Datum::toString() output
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Aug 19, 2016
1 parent 835a9e1 commit 7896f2b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions engines/director/lingo/lingo.cpp
Expand Up @@ -301,6 +301,15 @@ Common::String *Datum::toString() {
delete s;
s = u.s;
break;
case OBJECT:
*s = Common::String::format("#%s", u.s->c_str());
break;
case VOID:
*s = "#void";
break;
case VAR:
*s = Common::String::format("var: #%s", u.sym->name);
break;
default:
warning("Incorrect operation toString() for type: %s", type2str());
}
Expand Down

0 comments on commit 7896f2b

Please sign in to comment.