summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-04-23 16:20:12 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2018-05-17 16:56:11 -0300
commitf8a033fd70ac8a07c3c88ba2d32d61912f9961b5 (patch)
tree0f094d5009c796940f56295e1caa65b716abebf0 /src/bin/eolian_mono
parent2b8cbfe2f4518d9e0f3a117561800234a4b71e4d (diff)
efl_mono: Add support for Eina.Error/Empty in eina.Value
Summary: eina.Value.Empty now means that we have an zeroed (empty) eina value. For optional values that are empty use eina.Value.OptionalEmpty. This was required to support the empty values passed with EINA_VALUE_EMPTY in some Ecore futures. Also, returning an eina_value by value is not supported in eolian for safety reasons, so we removed some tests that tried to use this behavior. Depends on D6171 Reviewers: felipealmeida Reviewed By: felipealmeida Subscribers: cedric, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6172
Diffstat (limited to 'src/bin/eolian_mono')
-rw-r--r--src/bin/eolian_mono/eolian/mono/struct_definition.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/struct_definition.hh b/src/bin/eolian_mono/eolian/mono/struct_definition.hh
index 79e6ec6..618b433 100644
--- a/src/bin/eolian_mono/eolian/mono/struct_definition.hh
+++ b/src/bin/eolian_mono/eolian/mono/struct_definition.hh
@@ -240,7 +240,7 @@ struct to_internal_field_convert_generator
240 else if (field.type.c_type == "Eina_Value *" || field.type.c_type == "const Eina_Value *") 240 else if (field.type.c_type == "Eina_Value *" || field.type.c_type == "const Eina_Value *")
241 { 241 {
242 if (!as_generator( 242 if (!as_generator(
243 scope_tab << scope_tab << "_internal_struct." << string << " = _external_struct." << string << ".Handle;\n" 243 scope_tab << scope_tab << "_internal_struct." << string << " = _external_struct." << string << ".NativeHandle;\n"
244 ).generate(sink, std::make_tuple(field_name, field_name), context)) 244 ).generate(sink, std::make_tuple(field_name, field_name), context))
245 return false; 245 return false;
246 } 246 }