summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-11-17 11:55:43 -0500
committerDavid Robillard <d@drobilla.net>2022-11-17 12:09:45 -0500
commite0cb455ac899829cf9fe41bbd6015f5567a9bbcb (patch)
treef3638f9525386cacbcb6e9acc879fe3927f92220
parent6119ebd8459383808024d93cfb3a3882eb3b9ab4 (diff)
downloadzix-e0cb455ac899829cf9fe41bbd6015f5567a9bbcb.tar.gz
zix-e0cb455ac899829cf9fe41bbd6015f5567a9bbcb.tar.bz2
zix-e0cb455ac899829cf9fe41bbd6015f5567a9bbcb.zip
Show macro parameters in documentation
-rwxr-xr-xscripts/dox_to_sphinx.py7
1 files changed, 6 insertions, 1 deletions
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"]