aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/eolian_mono/eolian/mono/blacklist.hh
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-05-10 22:00:07 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2018-05-11 11:01:59 -0300
commitda6f5932f1ec0392d23d84907863271810d90567 (patch)
tree2dcf9729be38d78b2bacfa811072c7fbc5d161a1 /src/bin/eolian_mono/eolian/mono/blacklist.hh
parenteolian: introduce initial out-of-validation static checking (diff)
downloadefl-da6f5932f1ec0392d23d84907863271810d90567.tar.gz
efl_mono: Support type aliases.
Summary: Due to the absence of typedef from C#, we generate thin structs with implicit operators to allow reference the data from their typedef'd name from C#. The other alternatives would be always converting to the lowest base on the alias stack (losing the meaningfulness of the typedef name) or using the 'using' directive. The latter has the restriction that it makes an alias visible only in the file they are declared. Reviewers: felipealmeida, cedric, segfaultxavi Reviewed By: segfaultxavi Subscribers: zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6157
Diffstat (limited to 'src/bin/eolian_mono/eolian/mono/blacklist.hh')
-rw-r--r--src/bin/eolian_mono/eolian/mono/blacklist.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/blacklist.hh b/src/bin/eolian_mono/eolian/mono/blacklist.hh
index fe1640ea67..6fe4d584c4 100644
--- a/src/bin/eolian_mono/eolian/mono/blacklist.hh
+++ b/src/bin/eolian_mono/eolian/mono/blacklist.hh
@@ -73,6 +73,11 @@ inline bool is_struct_blacklisted(attributes::regular_type_def const& struct_)
return is_struct_blacklisted(name_helpers::type_full_eolian_name(struct_));
}
+inline bool is_alias_blacklisted(attributes::alias_def const& alias)
+{
+ return name_helpers::alias_full_eolian_name(alias) == "Eina.Error";
+}
+
}
}