aboutsummaryrefslogtreecommitdiff
path: root/src/core/defs.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-15 14:12:33 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-15 14:12:33 -0800
commit694ad48a9c3b4c3d3a91d323a1601c2c4ebacba9 (patch)
tree728bf733c8fa36de77a23781d827c677d4c49608 /src/core/defs.h
parent8eddc85dc9f621df44b85bf0769a1449109170ce (diff)
downloadnng-694ad48a9c3b4c3d3a91d323a1601c2c4ebacba9.tar.gz
nng-694ad48a9c3b4c3d3a91d323a1601c2c4ebacba9.tar.bz2
nng-694ad48a9c3b4c3d3a91d323a1601c2c4ebacba9.zip
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.
Diffstat (limited to 'src/core/defs.h')
-rw-r--r--src/core/defs.h4
1 files changed, 2 insertions, 2 deletions
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.