diff options
author | Vitor Sousa <vitorsousasilva@gmail.com> | 2014-12-23 17:40:11 -0200 |
---|---|---|
committer | Vitor Sousa <vitorsousasilva@gmail.com> | 2015-01-05 15:52:27 -0200 |
commit | 0685885c2a488c41f118118de8506f8d286e3eea (patch) | |
tree | 8bfdf66654d27e7481ab73b81b53ec857fb4ef95 /src/Makefile_Eolian_Cxx.am | |
parent | 6519ae6ed98789857722cd1d6e3c1c254ad229e7 (diff) |
eolian_cxx: Add implicit conversion of the returned pointer of C++ wrappers
Overloaded address-of operator for C++ Eolian wrappers for implicit converting
to any ancestor pointer type when getting the object memory address.
Added new grammars to aid the creation of the pointer wrappers
responsible of doing the implicit conversions.
Added a unit test which checks the address-of overload for arbitrary classes.
Added new .eo files to be used in it.
Diffstat (limited to '')
-rw-r--r-- | src/Makefile_Eolian_Cxx.am | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/src/Makefile_Eolian_Cxx.am b/src/Makefile_Eolian_Cxx.am index ebedc3dfd6..88f1186eaa 100644 --- a/src/Makefile_Eolian_Cxx.am +++ b/src/Makefile_Eolian_Cxx.am | |||
@@ -55,6 +55,9 @@ bin_eolian_cxx_eolian_cxx_DEPENDENCIES = @USE_EOLIAN_INTERNAL_LIBS@ | |||
55 | 55 | ||
56 | if EFL_ENABLE_TESTS | 56 | if EFL_ENABLE_TESTS |
57 | 57 | ||
58 | EOLIAN_FLAGS += \ | ||
59 | -I$(srcdir) | ||
60 | |||
58 | check_PROGRAMS += tests/eolian_cxx/eolian_cxx_suite | 61 | check_PROGRAMS += tests/eolian_cxx/eolian_cxx_suite |
59 | TESTS += tests/eolian_cxx/eolian_cxx_suite | 62 | TESTS += tests/eolian_cxx/eolian_cxx_suite |
60 | 63 | ||
@@ -62,15 +65,29 @@ tests_eolian_cxx_eolian_cxx_suite_SOURCES = \ | |||
62 | tests/eolian_cxx/eolian_cxx_suite.cc \ | 65 | tests/eolian_cxx/eolian_cxx_suite.cc \ |
63 | tests/eolian_cxx/eolian_cxx_test_parse.cc \ | 66 | tests/eolian_cxx/eolian_cxx_test_parse.cc \ |
64 | tests/eolian_cxx/callback.c \ | 67 | tests/eolian_cxx/callback.c \ |
68 | tests/eolian_cxx/a.c \ | ||
69 | tests/eolian_cxx/b.c \ | ||
70 | tests/eolian_cxx/c.c \ | ||
71 | tests/eolian_cxx/d.c \ | ||
65 | tests/eolian_cxx/eolian_cxx_test_callback.cc \ | 72 | tests/eolian_cxx/eolian_cxx_test_callback.cc \ |
73 | tests/eolian_cxx/eolian_cxx_test_address_of.cc \ | ||
66 | tests/eolian_cxx/eolian_cxx_test_wrapper.cc \ | 74 | tests/eolian_cxx/eolian_cxx_test_wrapper.cc \ |
67 | tests/eolian_cxx/eolian_cxx_test_generate.cc | 75 | tests/eolian_cxx/eolian_cxx_test_generate.cc |
68 | 76 | ||
69 | tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-eolian_cxx_test_callback.$(OBJEXT): tests/eolian_cxx/callback.eo.hh | 77 | tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-eolian_cxx_test_callback.$(OBJEXT): tests/eolian_cxx/callback.eo.hh |
78 | tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-eolian_cxx_test_address_of.$(OBJEXT): tests/eolian_cxx/a.eo.hh tests/eolian_cxx/b.eo.hh tests/eolian_cxx/c.eo.hh tests/eolian_cxx/d.eo.hh | ||
70 | 79 | ||
71 | tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-callback.$(OBJEXT): tests/eolian_cxx/callback.eo.c tests/eolian_cxx/callback.eo.h | 80 | tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-callback.$(OBJEXT): tests/eolian_cxx/callback.eo.c tests/eolian_cxx/callback.eo.h |
81 | tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-a.$(OBJEXT): tests/eolian_cxx/a.eo.c tests/eolian_cxx/a.eo.h | ||
82 | tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-b.$(OBJEXT): tests/eolian_cxx/b.eo.c tests/eolian_cxx/b.eo.h | ||
83 | tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-c.$(OBJEXT): tests/eolian_cxx/c.eo.c tests/eolian_cxx/c.eo.h | ||
84 | tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-d.$(OBJEXT): tests/eolian_cxx/d.eo.c tests/eolian_cxx/d.eo.h | ||
72 | 85 | ||
73 | CLEANFILES += tests/eolian_cxx/callback.eo.hh tests/eolian_cxx/callback.eo.c tests/eolian_cxx/callback.eo.h | 86 | CLEANFILES += tests/eolian_cxx/callback.eo.hh tests/eolian_cxx/callback.eo.c tests/eolian_cxx/callback.eo.h \ |
87 | tests/eolian_cxx/a.eo.hh tests/eolian_cxx/a.eo.c tests/eolian_cxx/a.eo.h \ | ||
88 | tests/eolian_cxx/b.eo.hh tests/eolian_cxx/b.eo.c tests/eolian_cxx/b.eo.h \ | ||
89 | tests/eolian_cxx/c.eo.hh tests/eolian_cxx/c.eo.c tests/eolian_cxx/c.eo.h \ | ||
90 | tests/eolian_cxx/d.eo.hh tests/eolian_cxx/d.eo.c tests/eolian_cxx/d.eo.h | ||
74 | 91 | ||
75 | tests_eolian_cxx_eolian_cxx_suite_CXXFLAGS = \ | 92 | tests_eolian_cxx_eolian_cxx_suite_CXXFLAGS = \ |
76 | -I$(top_builddir)/src/lib/efl \ | 93 | -I$(top_builddir)/src/lib/efl \ |
@@ -93,7 +110,12 @@ tests_eolian_cxx_eolian_cxx_suite_DEPENDENCIES = @USE_EOLIAN_INTERNAL_LIBS@ | |||
93 | 110 | ||
94 | endif | 111 | endif |
95 | 112 | ||
96 | EXTRA_DIST += tests/eolian_cxx/callback.eo | 113 | EXTRA_DIST += tests/eolian_cxx/callback.eo \ |
114 | tests/eolian_cxx/a.eo \ | ||
115 | tests/eolian_cxx/b.eo \ | ||
116 | tests/eolian_cxx/c.eo \ | ||
117 | tests/eolian_cxx/d.eo | ||
118 | |||
97 | include Makefile_Eolian_Cxx_Helper.am | 119 | include Makefile_Eolian_Cxx_Helper.am |
98 | 120 | ||
99 | endif | 121 | endif |