cxx: Fix examples compilation.
authorLauro Moura <lauromoura@expertisesolutions.com.br>
Mon, 11 Mar 2019 15:34:45 +0000 (11:34 -0400)
committerJunsuChoi <jsuya.choi@samsung.com>
Fri, 15 Mar 2019 04:23:19 +0000 (13:23 +0900)
commite8975219843f93e7015d880b6b411730a501e974
tree1af2a3de0eb7ccf36e4f3f668d89dc68ddeac605
parentd992f4f6918dbb8b130278af33f0e1d0a7548a19
cxx: Fix examples compilation.

Summary:
- Changed beta methods guards from CLASS_NAME_GUARD to
  EFL_BETA_API_SUPPORT to use the same scheme as C.
- Removed some includes to Efl_Ui.h from the examples. These were
  causing C's efl_part_get to not be generated due to EFL_PART_PROTECTED
  not being yet defined (it is defined in Elementary.hh, included
  afterwards). This was leading to Efl.Part.impl.hh trying to use a
  non-existent method.

Fixes T7716 partially (missing stringshare issue)

Test Plan: make examples

Reviewers: stefan_schmidt, felipealmeida, zmike

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7716

Differential Revision: https://phab.enlightenment.org/D8284
src/examples/elementary/bg_cxx_example_01.cc
src/examples/elementary/bg_cxx_example_02.cc
src/examples/elementary/button_cxx_example_00.cc
src/examples/elementary/button_cxx_example_01.cc
src/examples/elementary/radio_cxx_example_01.cc
src/examples/elementary/slider_cxx_example.cc
src/examples/elementary/toolbar_cxx_example_01.cc
src/lib/eolian_cxx/grammar/function_declaration.hpp
src/lib/eolian_cxx/grammar/function_definition.hpp