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

lsteamclient: Default calling convention is cdecl.

CW-Bug-Id: #22729
CW-Bug-Id: #23085
This commit is contained in:
Rémi Bernon
2023-12-04 22:48:13 +01:00
committed by Arkadiusz Hiler
parent dcc841cab0
commit 5e70a92e17
23 changed files with 134 additions and 167 deletions

View File

@@ -838,7 +838,7 @@ def callconv(cursor, prefix):
tokens = cursor.get_tokens()
while next(tokens).spelling != '(': pass
token = next(tokens).spelling.strip('_')
token = token.replace('*', 'stdcall')
token = token.replace('*', 'cdecl')
token = token.replace('S_CALLTYPE', 'cdecl')
return f'{prefix[0].upper()}_{token.upper()} '