1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-13 05:06:30 +04:00

Merge remote-tracking branch 'OFW/hedger/more-constness' into dev [ci skip]

This commit is contained in:
MX
2025-02-24 20:58:37 +03:00
68 changed files with 595 additions and 531 deletions

View File

@@ -113,7 +113,7 @@ def stringify_descr(type_descr):
# Hack
if isinstance(type_descr.ptr_to, FunctionType):
return stringify_descr(type_descr.ptr_to)
return f"{stringify_descr(type_descr.ptr_to)}*"
return f"{stringify_descr(type_descr.ptr_to)}*{' const' if type_descr.const else ''}"
elif isinstance(type_descr, Type):
return (
f"{'const ' if type_descr.const else ''}"