From 2fef60b718cca3a654f29b933ffcb33888cc974e Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Tue, 5 Jan 2016 17:09:31 +0100 Subject: [PATCH] eina_js: Fix documentation generation Summary: Fix doxygen's documentation generation. A bug in doxygen makes it fail with the _libv8_property_callback_info_test class. We put a #ifndef EFL_DOXYGEN around it to avoid it being seen by doxygen. Add a NOTE comment about this. ref T3005 @fix Test Plan: make doc must succeed Reviewers: felipealmeida, stefan_schmidt Projects: #efl Differential Revision: https://phab.enlightenment.org/D3534 --- src/bindings/js/eina_js/eina_js_compatibility.hh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bindings/js/eina_js/eina_js_compatibility.hh b/src/bindings/js/eina_js/eina_js_compatibility.hh index 9ef0cb814e..159c74a987 100644 --- a/src/bindings/js/eina_js/eina_js_compatibility.hh +++ b/src/bindings/js/eina_js/eina_js_compatibility.hh @@ -316,13 +316,17 @@ struct _libv8_callback_info_test { }; +// NOTE: ifndef needed because a bug in doxygen makes it fail with this class +#ifndef EFL_DOXYGEN template struct _libv8_property_callback_info_test : std::true_type {}; +#endif typedef v8::Handle(*_libv8_getter_callback)(v8::Local, v8::AccessorInfo const&); typedef void(*_libv8_setter_callback)(v8::Local, v8::Local, v8::AccessorInfo const&); +#ifndef EFL_DOXYGEN template struct _libv8_property_callback_info_test ::value; static constexpr bool const v8_uses_callback_info = _libv8_callback_info_test<>::value;