summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2016-01-05 17:09:31 +0100
committerStefan Schmidt <stefan@osg.samsung.com>2016-01-05 17:28:29 +0100
commit2fef60b718cca3a654f29b933ffcb33888cc974e (patch)
treeaa80c6a231f7733f1e5f07dfd006fcad2f66ac63 /src/bindings
parentb4eac7879e7db676fec00dff027ccf074781fc75 (diff)
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
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/js/eina_js/eina_js_compatibility.hh5
1 files changed, 5 insertions, 0 deletions
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
316{ 316{
317}; 317};
318 318
319// NOTE: ifndef needed because a bug in doxygen makes it fail with this class
320#ifndef EFL_DOXYGEN
319template <typename T = v8::ObjectTemplate, typename Enable = void> 321template <typename T = v8::ObjectTemplate, typename Enable = void>
320struct _libv8_property_callback_info_test 322struct _libv8_property_callback_info_test
321 : std::true_type {}; 323 : std::true_type {};
324#endif
322 325
323typedef v8::Handle<v8::Value>(*_libv8_getter_callback)(v8::Local<v8::String>, v8::AccessorInfo const&); 326typedef v8::Handle<v8::Value>(*_libv8_getter_callback)(v8::Local<v8::String>, v8::AccessorInfo const&);
324typedef void(*_libv8_setter_callback)(v8::Local<v8::String>, v8::Local<v8::Value>, v8::AccessorInfo const&); 327typedef void(*_libv8_setter_callback)(v8::Local<v8::String>, v8::Local<v8::Value>, v8::AccessorInfo const&);
325 328
329#ifndef EFL_DOXYGEN
326template <typename T> 330template <typename T>
327struct _libv8_property_callback_info_test 331struct _libv8_property_callback_info_test
328<T, typename std::enable_if 332<T, typename std::enable_if
@@ -339,6 +343,7 @@ struct _libv8_property_callback_info_test
339 : std::false_type 343 : std::false_type
340{ 344{
341}; 345};
346#endif
342 347
343static constexpr bool const v8_uses_isolate = _libv8_isolate_test<>::value; 348static constexpr bool const v8_uses_isolate = _libv8_isolate_test<>::value;
344static constexpr bool const v8_uses_callback_info = _libv8_callback_info_test<>::value; 349static constexpr bool const v8_uses_callback_info = _libv8_callback_info_test<>::value;