Update memory.cpp

This commit is contained in:
augustin64 2024-01-03 12:48:11 +01:00
parent d659fb9779
commit 400cf9e6d9

View File

@ -1,4 +1,5 @@
#include "include/memory.h"
#include "include/errors.h"
#include "include/utils.h"
using namespace std;
@ -49,7 +50,7 @@ Scope& Memory::get_function_scope(void) {
if (scope.type == ScopeType::Function) return scope;
}
throw exception();
throw InternalError();
}
void Memory::declare(string identifier, Type type, CodePosition pos) {