diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-15 05:08:40 +0630 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-15 05:08:40 +0630 |
commit | 1e1a13e741eb286930e669f8fb0195c943243b4e (patch) | |
tree | 0bff11a2be00e7773bce91780bf2f82ecb11aed2 /asm | |
parent | 0e5c9340725a5ee0b419c8e61f221049ee3c542e (diff) | |
download | ovm-1e1a13e741eb286930e669f8fb0195c943243b4e.tar.gz ovm-1e1a13e741eb286930e669f8fb0195c943243b4e.tar.bz2 ovm-1e1a13e741eb286930e669f8fb0195c943243b4e.zip |
Default constructor for pp_err_t
Diffstat (limited to 'asm')
-rw-r--r-- | asm/preprocesser.cpp | 4 | ||||
-rw-r--r-- | asm/preprocesser.hpp | 1 |
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); |