lsteamclient: Add warnings and asserts to unixlib calls.
CW-Bug-Id: #22729
This commit is contained in:
parent
37785cfbd3
commit
eb45ddf6f8
1 changed files with 8 additions and 1 deletions
|
@ -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…
Reference in a new issue