2
0
mirror of https://github.com/ValveSoftware/Proton synced 2025-08-31 06:35:23 +00:00

lsteamclient: Get rid of the remaining steam typedefs.

CW-Bug-Id: #22729
This commit is contained in:
Rémi Bernon
2023-09-19 19:59:23 +02:00
committed by Arkadiusz Hiler
parent aaf9ba6e56
commit a5fe4d774b
204 changed files with 7396 additions and 7395 deletions

View File

@@ -588,13 +588,11 @@ def declspec(decl, name):
call = callconv(decl)
if type(decl) is Cursor:
decl = decl.type
canon = decl.get_canonical()
if canon.kind == TypeKind.POINTER and canon.get_pointee().kind == TypeKind.FUNCTIONPROTO:
canon = canon.get_pointee()
return declspec_func(canon, f"*{call}{name}")
decl = decl.get_canonical()
const = 'const ' if decl.is_const_qualified() else ''
if decl.kind == TypeKind.FUNCTIONPROTO:
return declspec_func(decl, name)
if decl.kind in (TypeKind.POINTER, TypeKind.LVALUEREFERENCE):
decl = decl.get_pointee()
return declspec(decl, f"*{call}{const}{name}")