vrclient: 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:43:46 +01:00 committed by Arkadiusz Hiler
parent ae89737911
commit dcc841cab0

View file

@ -628,7 +628,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()} '