restore correct EWK_VIEW_IMPL_GET_OR_RETURN
Change-Id: Ic4521134ca159e2d619b7dfa0499bf048773f00c
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
// helper macro
#define EWK_VIEW_IMPL_GET_OR_RETURN(evas_object, impl, ...) \
- EWebView* impl = GetWebViewFromEvasObject(evas_object) \
+ EWebView* impl = GetWebViewFromEvasObject(evas_object); \
+ do { \
+ if (!impl) { \
+ EINA_LOG_CRIT("Evas Object %p is not Ewk WebView", evas_object); \
+ return __VA_ARGS__; \
+ } \
+ } while (0)
#endif // ewk_view_private_h