(header_path: Path)
| 262 | if ptype == "void" and not pname: |
| 263 | continue |
| 264 | params.append(FuncParam(name=pname, c_type=ptype)) |
| 265 | return params, is_variadic |
| 266 | |
| 267 | |
| 268 | def _extract_export_names(header_path: Path) -> set[str]: |
| 269 | text = header_path.read_text() |
| 270 | pattern = re.compile(r"LEAN_EXPORT\s+(?:LEAN_NORETURN\s+)?[\w\s*]+\s+(\w+)\s*\(") |