From 929e5a3d0dddf425f800e6479756005736c47e7b Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 15 Apr 2024 04:45:59 +0630 Subject: Implement constructors for pp_err_t --- asm/preprocesser.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 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} +{} -- cgit v1.2.3-13-gbd6f