Skip to content

Commit

Permalink
Add constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
pfultz2 committed Jun 30, 2023
1 parent f0811e0 commit 7ab32e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/programmemory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1190,6 +1190,10 @@ struct Executor {
const Settings* settings = nullptr;
int fdepth = 4;

Executor(ProgramMemory* pm = nullptr, const Settings* settings = nullptr)
: pm(pm), settings(settings)
{}

ValueFlow::Value executeImpl(const Token* expr)
{
ValueFlow::Value unknown = ValueFlow::Value::unknown();
Expand Down

0 comments on commit 7ab32e0

Please sign in to comment.