1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 04:34:43 +04:00

libs: stricter constness for saving RAM with .rodata section; fbt: sdk: fixed signature generation for nested const params

This commit is contained in:
hedger
2025-02-22 16:05:56 +00:00
parent ef024e8086
commit b0835220ac
30 changed files with 57 additions and 57 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 ''}"