2
0
mirror of https://github.com/ValveSoftware/Proton synced 2025-09-01 15:25:11 +00:00

vrclient: Add warnings and asserts to unixlib calls.

CW-Bug-Id: #22729
This commit is contained in:
Rémi Bernon
2023-10-04 17:39:31 +02:00
committed by Arkadiusz Hiler
parent eb45ddf6f8
commit e24f98aa3b

View File

@@ -69,7 +69,13 @@ struct vrclient_VRClientCoreFactory_params
#include <poppack.h> #include <poppack.h>
#define VRCLIENT_CALL( code, args ) WINE_UNIX_CALL( unix_ ## code, args ) #define VRCLIENT_CALL( code, args ) \
({ \
NTSTATUS status = WINE_UNIX_CALL( unix_ ## code, args ); \
if (status) WARN( #code " failed, status %#x\n", (UINT)status ); \
assert( !status ); \
status; \
})
#ifdef __cplusplus #ifdef __cplusplus
} /* extern "C" */ } /* extern "C" */