diff options
-rw-r--r-- | asm/preprocesser.cpp | 11 |
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} +{} |