forked from enlightenment/efl
parent
755b290404
commit
537c7fe9e3
|
@ -631,6 +631,19 @@ EAPI const Eo_Class *eo_class_get(const Eo *obj);
|
||||||
EAPI void eo_error_set_internal(const Eo *obj, const char *file, int line);
|
EAPI void eo_error_set_internal(const Eo *obj, const char *file, int line);
|
||||||
/* @endcond */
|
/* @endcond */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @def eo_error_get
|
||||||
|
* @brief Get whether or not the eo has error when constructing, destructing or calling a function of the object.
|
||||||
|
* @param obj the object to work on.
|
||||||
|
*
|
||||||
|
* @see eo_error_set()
|
||||||
|
*/
|
||||||
|
#define eo_error_get(obj) eo_error_get_internal(obj)
|
||||||
|
|
||||||
|
/* @cond 0 */
|
||||||
|
EAPI Eina_Bool eo_error_get_internal(const Eo *obj);
|
||||||
|
/* @endcond */
|
||||||
|
|
||||||
#define _eo_add_common(klass, parent, is_ref, ...) \
|
#define _eo_add_common(klass, parent, is_ref, ...) \
|
||||||
( \
|
( \
|
||||||
_eo_do_start(_eo_add_internal_start(__FILE__, __LINE__, klass, parent, is_ref), \
|
_eo_do_start(_eo_add_internal_start(__FILE__, __LINE__, klass, parent, is_ref), \
|
||||||
|
|
|
@ -1584,6 +1584,14 @@ eo_error_set_internal(const Eo *obj_id, const char *file, int line)
|
||||||
obj->do_error = EINA_TRUE;
|
obj->do_error = EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EAPI Eina_Bool
|
||||||
|
eo_error_get_internal(const Eo *obj_id)
|
||||||
|
{
|
||||||
|
EO_OBJ_POINTER_RETURN_VAL(obj_id, obj, EINA_TRUE);
|
||||||
|
|
||||||
|
return obj->do_error;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
_eo_condtor_done(Eo *obj_id)
|
_eo_condtor_done(Eo *obj_id)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue