From 694ad48a9c3b4c3d3a91d323a1601c2c4ebacba9 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 15 Jan 2017 14:12:33 -0800 Subject: Cleanup winsock somewhat. It turns out that I didn't quite understand overlapped I/O. We can and should always do the GetOverlappedResult(), regardless of how the routine returns. --- src/core/defs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/defs.h b/src/core/defs.h index 13d0b25f..9ba41fae 100644 --- a/src/core/defs.h +++ b/src/core/defs.h @@ -17,8 +17,8 @@ // superior, support for such are not universal. #define NNI_ARG_UNUSED(x) ((void) x); -#define NNI_ASSERT(x) \ - if (!(x)) \ +#define NNI_ASSERT(x) \ + if (!(x)) \ nni_panic("%s: %d: assert err: %s", __FILE__, __LINE__, # x) // These types are common but have names shared with user space. -- cgit v1.2.3-70-g09d2