tree-wide: Introduce DECLARE_TRIVIAL_REF_UNREF_FUNC() and friends

This commit is contained in:
Daan De Meyer
2026-01-02 04:04:19 +09:00
committed by Yu Watanabe
parent 11adc8bad5
commit daff8ea8bb
61 changed files with 109 additions and 144 deletions
+17
View File
@@ -61,6 +61,23 @@ def process_header_file(file: IO[str]) -> str:
text += f' {{ "{m[1]}", {m[1]} }},\n'
continue
# Functions declared by ref/unref macros
m = re.search(r'_SD_DECLARE_TRIVIAL_REF_UNREF_FUNC\((\w+)\)', line)
if m:
text += f' {{ "{m[1]}_ref", {m[1]}_ref }},\n'
text += f' {{ "{m[1]}_unref", {m[1]}_unref }},\n'
continue
m = re.search(r'_SD_DECLARE_TRIVIAL_REF_FUNC\((\w+)\)', line)
if m:
text += f' {{ "{m[1]}_ref", {m[1]}_ref }},\n'
continue
m = re.search(r'_SD_DECLARE_TRIVIAL_UNREF_FUNC\((\w+)\)', line)
if m:
text += f' {{ "{m[1]}_unref", {m[1]}_unref }},\n'
continue
return text