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:
@@ -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 ''}"
|
||||
|
||||
Reference in New Issue
Block a user