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) {