From 1e1a13e741eb286930e669f8fb0195c943243b4e Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 15 Apr 2024 05:08:40 +0630 Subject: Default constructor for pp_err_t --- asm/preprocesser.cpp | 4 ++++ asm/preprocesser.hpp | 1 + 2 files changed, 5 insertions(+) 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); -- cgit v1.2.3-13-gbd6f