summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx/grammar/klass_def.hpp
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-05-16 15:52:46 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-05-16 15:52:46 +0200
commitb3a870c7bb29461c6478fae9f51c211229b62d9d (patch)
tree59e42cceb4526bcd8462d5a85a1f95f223957df5 /src/lib/eolian_cxx/grammar/klass_def.hpp
parent4ab1f2388eb303f8e5d9eae31cdcf39df683c736 (diff)
eolian: rename eolian_typedecl_enum_field_c_name_get
This is to allow for better object oriented APIs, as the `c_name` field would be inherited from Object. This also makes it more clear in C.
Diffstat (limited to '')
-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 fa32dfbe93..60abbb54a6 100644
--- a/src/lib/eolian_cxx/grammar/klass_def.hpp
+++ b/src/lib/eolian_cxx/grammar/klass_def.hpp
@@ -1474,7 +1474,7 @@ struct enum_value_def
1474 enum_value_def(Eolian_Enum_Type_Field const* enum_field, Eolian_Unit const*) 1474 enum_value_def(Eolian_Enum_Type_Field const* enum_field, Eolian_Unit const*)
1475 { 1475 {
1476 name = eolian_typedecl_enum_field_name_get(enum_field); 1476 name = eolian_typedecl_enum_field_name_get(enum_field);
1477 c_name = eolian_typedecl_enum_field_c_name_get(enum_field); 1477 c_name = eolian_typedecl_enum_field_c_constant_get(enum_field);
1478 auto exp = eolian_typedecl_enum_field_value_get(enum_field, EINA_TRUE); 1478 auto exp = eolian_typedecl_enum_field_value_get(enum_field, EINA_TRUE);
1479 value = eolian_expression_eval(exp, EOLIAN_MASK_INT); // FIXME hardcoded int 1479 value = eolian_expression_eval(exp, EOLIAN_MASK_INT); // FIXME hardcoded int
1480 documentation = eolian_typedecl_enum_field_documentation_get(enum_field); 1480 documentation = eolian_typedecl_enum_field_documentation_get(enum_field);