aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--asm/preprocesser.cpp4
-rw-r--r--asm/preprocesser.hpp1
2 files changed, 5 insertions, 0 deletions
diff --git a/asm/preprocesser.cpp b/asm/preprocesser.cpp
index aae1f0b..8ac091b 100644
--- a/asm/preprocesser.cpp
+++ b/asm/preprocesser.cpp
@@ -169,6 +169,10 @@ std::ostream &operator<<(std::ostream &os, pp_err_t &err)
return os;
}
+pp_err_t::pp_err_t()
+ : reference{nullptr}, type{pp_err_type_t::OK}, lerr{lerr_t::OK}
+{}
+
pp_err_t::pp_err_t(pp_err_type_t e)
: reference{nullptr}, type{e}, lerr{lerr_t::OK}
{}
diff --git a/asm/preprocesser.hpp b/asm/preprocesser.hpp
index 0d340df..f4cb3bb 100644
--- a/asm/preprocesser.hpp
+++ b/asm/preprocesser.hpp
@@ -34,6 +34,7 @@ struct pp_err_t
pp_err_type_t type;
lerr_t lerr;
+ pp_err_t();
pp_err_t(pp_err_type_t);
pp_err_t(pp_err_type_t, const token_t *);
pp_err_t(pp_err_type_t, const token_t *, lerr_t);