From: Kefu Chai Date: Fri, 28 Aug 2020 10:20:13 +0000 (+0800) Subject: doc/conf.py: define CEPH_RADOS_API for breathe X-Git-Tag: v16.1.0~1255^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=cf357e17ab5cbd9af4f67c51117b5f368cb9913f;p=ceph.git doc/conf.py: define CEPH_RADOS_API for breathe otherwise we could have following errors: Invalid C declaration: Expected identifier in nested name, got keyword: int [error at 18] CEPH_RADOS_API int rados_aio_append (rados_ioctx_t io, const char *oid, rados_completion_t completion, const char *buf, size_t len) ------------------^ Signed-off-by: Kefu Chai --- diff --git a/doc/conf.py b/doc/conf.py index 34c91bf6cd4..1eb3439ddd7 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -90,6 +90,11 @@ breathe_projects_source = { ["rados_types.h", "librados.h"]) } breathe_domain_by_extension = {'py': 'py', 'c': 'c', 'h': 'c', 'cc': 'cxx', 'hpp': 'cxx'} +breathe_doxygen_config_options = { + 'EXPAND_ONLY_PREDEF': 'YES', + 'MACRO_EXPANSION': 'YES', + 'PREDEFINED': 'CEPH_RADOS_API= ' +} # the docs are rendered with github links pointing to master. the javascript # snippet in _static/ceph.js rewrites the edit links when a page is loaded, to