From 8eddc85dc9f621df44b85bf0769a1449109170ce Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 15 Jan 2017 13:59:54 -0800 Subject: Windows IPC works now. --- src/core/defs.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core') diff --git a/src/core/defs.h b/src/core/defs.h index 9c745660..13d0b25f 100644 --- a/src/core/defs.h +++ b/src/core/defs.h @@ -17,6 +17,10 @@ // superior, support for such are not universal. #define NNI_ARG_UNUSED(x) ((void) 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. typedef struct nng_socket nni_sock; typedef struct nng_endpoint nni_ep; -- cgit v1.2.3-70-g09d2