fix: update generate_checked_function to include static inline in function declaration

This commit is contained in:
liang.he@intel.com 2025-10-16 06:37:37 +00:00
parent 90bfd394da
commit 4e0b85eccf

View File

@ -18,7 +18,7 @@ def generate_checked_function(func):
return_type = " ".join(func.type.type.type.names)
# Start building the new function
new_func = [f"Result {new_func_name}("]
new_func = [f"static inline Result {new_func_name}("]
param_list = []
for param in params:
if isinstance(param, c_ast.EllipsisParam):