Fix pointer typo

This commit is contained in:
ala89 2024-01-03 14:45:13 +01:00
parent ca02c78673
commit 9b9558ce9f
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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