Browse Source

doc: change the way MAGNUM_BUILD_DEPRECATED is defined for Doxygen.

This way, if it gets removed from Doxyfile's PREDEFINED option, it won't
randomly leak to some headers and some not.
pull/499/head
Vladimír Vondruš 3 years ago
parent
commit
3aacfb8deb
  1. 9
      src/Magnum/Magnum.h

9
src/Magnum/Magnum.h

@ -94,8 +94,15 @@ future). To preserve backward compatibility, Magnum is by default built with
deprecated API included. deprecated API included.
@see @ref building, @ref cmake @see @ref building, @ref cmake
*/ */
/* This macro is enabled by default in Doxyfile, but we may still want to
temporarily remove it from there to catch outdated links. This makes it work
in both cases. */
#ifdef MAGNUM_BUILD_DEPRECATED
#define MAGNUM_BUILD_DEPRECATED #define MAGNUM_BUILD_DEPRECATED
/* (enabled by default) */ #else
#define MAGNUM_BUILD_DEPRECATED
#undef MAGNUM_BUILD_DEPRECATED
#endif
/** /**
@brief Static library build @brief Static library build

Loading…
Cancel
Save