fixup! Remove tw_webview
authorArnaud Renevier <a.renevier@samsung.com>
Wed, 6 May 2015 00:24:11 +0000 (17:24 -0700)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
restore correct EWK_VIEW_IMPL_GET_OR_RETURN

Change-Id: Ic4521134ca159e2d619b7dfa0499bf048773f00c
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
tizen_src/ewk/efl_integration/private/ewk_view_private.h

index f47431a..de41f66 100644 (file)
@@ -27,6 +27,12 @@ EWebView* GetWebViewFromEvasObject(const Evas_Object* eo);
 
 // 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