summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2019-02-01 14:03:02 -0500
committerChristopher Michael <cp.michael@samsung.com>2019-02-01 14:03:02 -0500
commit0223bb29dfc4c1621ace044395196064c82b98de (patch)
treefc42c91c0461472391960afd14f232f941911f02 /src/bindings
parente4144504048ff2c9a3c1787b82c73a54e8d209a7 (diff)
downloadefl-0223bb29dfc4c1621ace044395196064c82b98de.tar.gz
eolian-mono: Provide constructor parameters based on the constructors
section of the Eo files. Reviewers: woohyun, segfaultxavi, bu5hm4n, felipealmeida Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7789
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/mono/eo_mono/iwrapper.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/bindings/mono/eo_mono/iwrapper.cs b/src/bindings/mono/eo_mono/iwrapper.cs
index fe96088626..2119e07106 100644
--- a/src/bindings/mono/eo_mono/iwrapper.cs
+++ b/src/bindings/mono/eo_mono/iwrapper.cs
@@ -157,6 +157,23 @@ public class Globals {
public delegate byte class_initializer(IntPtr klass);
+ public static T GetParamHelper<T>(Nullable<T> v) where T : struct
+ {
+ return v.Value;
+ }
+ public static U GetParamHelper<U>(U v)
+ {
+ return v;
+ }
+ public static bool ParamHelperCheck<T>(Nullable<T> v) where T : struct
+ {
+ return v.HasValue;
+ }
+ public static bool ParamHelperCheck<U>(U v)
+ {
+ return v != null;
+ }
+
public static IntPtr register_class(String class_name, IntPtr base_klass, System.Type type)
{
ClassDescription description;