summaryrefslogtreecommitdiff
path: root/src/lib/eo
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-02-14 15:33:55 -0500
committerMike Blumenkrantz <zmike@samsung.com>2019-02-14 15:33:55 -0500
commit512e37d02fc8ee37d0f3b541b3316775eda8f51b (patch)
tree48872bbe356d208c00b2cb44ddf058f3ee366eaa /src/lib/eo
parenta2ea993f50f787ad0087babe381b59c692dd9cbe (diff)
Remove warnings when building without EFL_BETA_API_SUPPORT
Summary: efl_alive_get should be a method defined in efl_object.eo, protected by EFL_BETA_API_SUPPORT while that class is still @beta. Instead, it is defined in Eo.h, so the BETA guard has to be defined manually. This was causing some unsighly warnings during "make" and "make check" (implicit declaration of function ‘efl_invalidating_get’) Test Plan: make && make check do not throw that warning anymore Reviewers: zmike, cedric Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7958
Diffstat (limited to 'src/lib/eo')
-rw-r--r--src/lib/eo/Eo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h
index 403bef9925..7f90e79653 100644
--- a/src/lib/eo/Eo.h
+++ b/src/lib/eo/Eo.h
@@ -2231,6 +2231,7 @@ eina_value_object_get(Eina_Value *v)
2231 return r; 2231 return r;
2232} 2232}
2233 2233
2234#ifdef EFL_BETA_API_SUPPORT
2234/** 2235/**
2235 * @brief Get if the object is in its main lifetime. 2236 * @brief Get if the object is in its main lifetime.
2236 * @param obj the object to check 2237 * @param obj the object to check
@@ -2243,6 +2244,7 @@ efl_alive_get(const Eo *obj)
2243{ 2244{
2244 return efl_finalized_get(obj) && !efl_invalidating_get(obj) && !efl_invalidated_get(obj); 2245 return efl_finalized_get(obj) && !efl_invalidating_get(obj) && !efl_invalidated_get(obj);
2245} 2246}
2247#endif /* EFL_BETA_API_SUPPORT */
2246 2248
2247/** 2249/**
2248 * @brief Event triggered when a callback was added to the object 2250 * @brief Event triggered when a callback was added to the object