From a6c90186b4f95183a8b40e1c44dc4b4bdb48cbc4 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Sat, 28 Sep 2019 00:14:13 +0200 Subject: Add deprecation system similiar to Qt's This adds the QXMPP_DISABLE_DEPRECATED_BEFORE option and a QXMPP_DEPRECATED_SINCE(major, minor) macro. They work like their Qt equivalent: - QXMPP_DISABLE_DEPRECATED_BEFORE defines the version number of source compatibility to be kept with. By default this is the major version (e.g. QXmpp 1.0.0) - QXMPP_DEPRECATED_SINCE(major, minor) returns true, if functions that got deprecated at this version should still be included. --- doc/Doxyfile.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/Doxyfile.in b/doc/Doxyfile.in index 97a4e1de..b5765cd0 100644 --- a/doc/Doxyfile.in +++ b/doc/Doxyfile.in @@ -13,3 +13,7 @@ GENERATE_LATEX = NO HTML_TIMESTAMP = NO QUIET = YES RECURSIVE = YES +ENABLE_PREPROCESSING = YES +MACRO_EXPANSION = YES +EXPAND_ONLY_PREDEF = YES +PREDEFINED = "QXMPP_DEPRECATED_SINCE(major, minor)=" -- cgit v1.2.3