From 400cf9e6d9f0df6d417196d7cad807de01c79e3b Mon Sep 17 00:00:00 2001 From: augustin64 Date: Wed, 3 Jan 2024 12:48:11 +0100 Subject: [PATCH] Update memory.cpp --- src/memory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/memory.cpp b/src/memory.cpp index 2374fa1..053bd00 100644 --- a/src/memory.cpp +++ b/src/memory.cpp @@ -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) {