Skip to content

Commit

Permalink
DIRECTOR: Lingo: Put codeFunc into separate function
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Aug 3, 2016
1 parent 62c0700 commit 8a29870
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 78 deletions.
9 changes: 9 additions & 0 deletions engines/director/lingo/lingo-codegen.cpp
Expand Up @@ -206,6 +206,15 @@ void Lingo::codeArgStore() {
}
}

int Lingo::codeFunc(Common::String *s, int numpar) {
g_lingo->code1(g_lingo->c_call);
g_lingo->codeString(s->c_str());

inst num = 0;
WRITE_UINT32(&num, numpar);
g_lingo->code1(num);
}

void Lingo::codeLabel(int label) {
_labelstack.push_back(label);
}
Expand Down

0 comments on commit 8a29870

Please sign in to comment.