Skip to content

Commit

Permalink
DIRECTOR: Lingo: Added printing func
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Aug 3, 2016
1 parent a5b69ca commit 76282dc
Show file tree
Hide file tree
Showing 5 changed files with 167 additions and 112 deletions.
10 changes: 10 additions & 0 deletions engines/director/lingo/lingo-funcs.cpp
Expand Up @@ -179,6 +179,16 @@ Datum Lingo::pop(void) {
return ret;
}

void Lingo::func_xpop() {
g_lingo->pop();
}

void Lingo::func_printtop(void) {
Datum d = g_lingo->pop();

warning("%d\n", d.val);
}

void Lingo::func_constpush() {
Datum d;
d.val = ((Symbol *)*g_lingo->_pc++)->u.val;
Expand Down

0 comments on commit 76282dc

Please sign in to comment.