Fix pointer typo
This commit is contained in:
parent
ca02c78673
commit
9b9558ce9f
@ -4,7 +4,7 @@ using namespace std;
|
|||||||
#include "include/execute.h"
|
#include "include/execute.h"
|
||||||
|
|
||||||
|
|
||||||
EvalResult execute(vector<string> input, Memory memory, int initial_line, ExecArgs args) {
|
EvalResult execute(vector<string> input, Memory& memory, int initial_line, ExecArgs args) {
|
||||||
try {
|
try {
|
||||||
vector<Token> tokens = tokenize(input, initial_line);
|
vector<Token> tokens = tokenize(input, initial_line);
|
||||||
|
|
||||||
|
@ -16,6 +16,6 @@ typedef struct ExecArgs {
|
|||||||
bool dump_mem=false;
|
bool dump_mem=false;
|
||||||
} ExecArgs;
|
} ExecArgs;
|
||||||
|
|
||||||
EvalResult execute(vector<string> input, Memory memory, int initial_line=0, ExecArgs args={});
|
EvalResult execute(vector<string> input, Memory& memory, int initial_line=0, ExecArgs args={});
|
||||||
|
|
||||||
#endif
|
#endif
|
Loading…
Reference in New Issue
Block a user