From 0e5c9340725a5ee0b419c8e61f221049ee3c542e Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 15 Apr 2024 05:08:07 +0630 Subject: preprocess_* now uses const references to tokens They copy and construct new token vectors and just read the token inputs. --- asm/preprocesser.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'asm/preprocesser.hpp') diff --git a/asm/preprocesser.hpp b/asm/preprocesser.hpp index a1d8a31..0d340df 100644 --- a/asm/preprocesser.hpp +++ b/asm/preprocesser.hpp @@ -45,13 +45,13 @@ std::pair, pp_err_t> preprocesser(std::vector &); std::pair, pp_err_t> -preprocess_const_blocks(std::vector &); +preprocess_const_blocks(const std::vector &); std::pair, pp_err_t> -preprocess_use_blocks(std::vector &); +preprocess_use_blocks(const std::vector &); // TODO: Implement this std::pair, pp_err_t> -preprocess_macro_blocks(std::vector &); +preprocess_macro_blocks(const std::vector &); #endif -- cgit v1.2.3-13-gbd6f