diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-23 02:26:08 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-23 03:05:06 -0600 |
commit | 82b733e4f8b3febc3b51c133a52fb62b54180b4b (patch) | |
tree | 0cb858fd7b55f19eda2d027e628b580aab155342 /lib9p/protogen/c9util.py | |
parent | 2a70a611558daa248e4fc1a11a9aa0ceb3ed397a (diff) |
lib9p: protogen: pull c.py and c_*.py out of __init__.py
Diffstat (limited to 'lib9p/protogen/c9util.py')
-rw-r--r-- | lib9p/protogen/c9util.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib9p/protogen/c9util.py b/lib9p/protogen/c9util.py index e7ad999..f9c49fc 100644 --- a/lib9p/protogen/c9util.py +++ b/lib9p/protogen/c9util.py @@ -107,3 +107,11 @@ def idl_expr(expr: idl.Expr, lookup_sym: typing.Callable[[str], str]) -> str: case _: assert False return " ".join(ret) + + +def arg_used(arg: str) -> str: + return arg + + +def arg_unused(arg: str) -> str: + return f"LM_UNUSED({arg})" |