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:
committed by
Arkadiusz Hiler
parent
aaf9ba6e56
commit
a5fe4d774b
@@ -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}")
|
||||
|
Reference in New Issue
Block a user