From e0cb455ac899829cf9fe41bbd6015f5567a9bbcb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 17 Nov 2022 11:55:43 -0500 Subject: Show macro parameters in documentation --- scripts/dox_to_sphinx.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/dox_to_sphinx.py b/scripts/dox_to_sphinx.py index 8282646..76c0ed5 100755 --- a/scripts/dox_to_sphinx.py +++ b/scripts/dox_to_sphinx.py @@ -520,7 +520,12 @@ def declaration_string(record): if "template_params" in record: result = "template <%s> " % record["template_params"] - if kind == "function": + if kind == "define": + if "prototype" in record: + result += record["prototype"] + else: + result += local_name(record["name"]) + elif kind == "function": result += record["prototype"] elif kind == "typedef": result += record["definition"] -- cgit v1.2.1