summaryrefslogtreecommitdiff
path: root/src/lib/eolian_cxx/grammar/eps.hpp
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2020-02-11 17:48:26 +0000
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2020-02-18 17:53:19 -0300
commitdf0715a9aa27903dd549c2b4516ab2cba0274413 (patch)
tree338fa2ea31b02e0a36dc16e8375e978569d6e38e /src/lib/eolian_cxx/grammar/eps.hpp
parenteba07471a0cb9baed2204856078f44cc2d31f7d9 (diff)
C#: Add error checking for Eina.Success_Flag return type
When a get and/or set from property is defined to return, explicitly, a Eina.Success_Flag, the mono generator will check the return value and generate an exception if the call fails. Resolves T8383. Reviewed-by: João Paulo Taylor Ienczak Zanette <joao.tiz@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D11281
Diffstat (limited to '')
-rw-r--r--src/lib/eolian_cxx/grammar/eps.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/eolian_cxx/grammar/eps.hpp b/src/lib/eolian_cxx/grammar/eps.hpp
index 6416bc918f..354c8d7cdb 100644
--- a/src/lib/eolian_cxx/grammar/eps.hpp
+++ b/src/lib/eolian_cxx/grammar/eps.hpp
@@ -22,11 +22,17 @@ namespace efl { namespace eolian { namespace grammar {
22 22
23struct eps_generator 23struct eps_generator
24{ 24{
25 eps_generator () : r(true) {}
26 eps_generator (bool r) : r(r) {}
27 bool r;
28
25 template <typename OutputIterator, typename Attribute, typename Context> 29 template <typename OutputIterator, typename Attribute, typename Context>
26 bool generate(OutputIterator, Attribute const&, Context const&) const 30 bool generate(OutputIterator, Attribute const&, Context const&) const
27 { 31 {
28 return true; 32 return r;
29 } 33 }
34
35 eps_generator operator()(bool r) const { return {r}; }
30}; 36};
31 37
32template <> 38template <>