aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-04-15 04:45:59 +0630
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-04-15 04:55:51 +0630
commit929e5a3d0dddf425f800e6479756005736c47e7b (patch)
tree728a9ed5d8922150a517792d408ca42c852a2105
parent0a93ad5a8a382d0dd1027bf81e65371aa1bac6db (diff)
downloadovm-929e5a3d0dddf425f800e6479756005736c47e7b.tar.gz
ovm-929e5a3d0dddf425f800e6479756005736c47e7b.tar.bz2
ovm-929e5a3d0dddf425f800e6479756005736c47e7b.zip
Implement constructors for pp_err_t
-rw-r--r--asm/preprocesser.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/asm/preprocesser.cpp b/asm/preprocesser.cpp
index d429bf1..e87a505 100644
--- a/asm/preprocesser.cpp
+++ b/asm/preprocesser.cpp
@@ -63,3 +63,14 @@ preprocess_use_blocks(vector<token_t *> tokens)
return VAL(new_tokens);
}
+pp_err_t::pp_err_t(pp_err_type_t e)
+ : reference{nullptr}, type{e}, lerr{lerr_t::OK}
+{}
+
+pp_err_t::pp_err_t(pp_err_type_t err, const token_t *ref)
+ : reference{ref}, type{err}
+{}
+
+pp_err_t::pp_err_t(pp_err_type_t err, const token_t *ref, lerr_t lerr)
+ : reference{ref}, type{err}, lerr{lerr}
+{}