summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-09-04 18:00:58 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-09-04 18:02:47 +0200
commit6751f011c1c621c67b671baa4d63e887af374bd4 (patch)
tree38f2c7d73e4171799e502cf61db346a1aa3c28a2 /src/lib/eolian_cxx
parent0021d1386d5828e1bd2b857a2f073327902df817 (diff)
eolian: remove the expression eval_type API
This is unnecessary because for all contexts where type is relevant the validator already makes sure the type and expression match correctly, so you don't ever need to re-validate it. If you are doing a generic case and are not sure, just use MASK_ALL.
Diffstat (limited to 'src/lib/eolian_cxx')
-rw-r--r--src/lib/eolian_cxx/grammar/klass_def.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eolian_cxx/grammar/klass_def.hpp b/src/lib/eolian_cxx/grammar/klass_def.hpp
index 74375159a0..b451ed2d6b 100644
--- a/src/lib/eolian_cxx/grammar/klass_def.hpp
+++ b/src/lib/eolian_cxx/grammar/klass_def.hpp
@@ -1015,7 +1015,7 @@ struct variable_def
1015 if (!expr) 1015 if (!expr)
1016 throw std::runtime_error("Could not get constant variable value expression"); 1016 throw std::runtime_error("Could not get constant variable value expression");
1017 1017
1018 this->expression_value = ::eolian_expression_eval_type(expr, ::eolian_variable_base_type_get(variable)); 1018 this->expression_value = ::eolian_expression_eval(expr, ::EOLIAN_MASK_ALL);
1019 } 1019 }
1020 } 1020 }
1021}; 1021};