mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-26 21:48:31 +03:00
lsteamclient: Add warnings and asserts to unixlib calls.
CW-Bug-Id: #22729
This commit is contained in:
parent
37785cfbd3
commit
eb45ddf6f8
@ -4,6 +4,7 @@
|
||||
#include <stdarg.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <assert.h>
|
||||
|
||||
#include <windef.h>
|
||||
#include <winbase.h>
|
||||
@ -206,7 +207,13 @@ struct networking_message
|
||||
|
||||
#include <poppack.h>
|
||||
|
||||
#define STEAMCLIENT_CALL( code, args ) WINE_UNIX_CALL( unix_ ## code, args )
|
||||
#define STEAMCLIENT_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
|
||||
} /* extern "C" */
|
||||
|
Loading…
x
Reference in New Issue
Block a user