diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-15 13:59:54 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-15 13:59:54 -0800 |
| commit | 8eddc85dc9f621df44b85bf0769a1449109170ce (patch) | |
| tree | b2249a7152cb4413f9e871a26239283c1ae033df /src/core | |
| parent | 2eace190e7715e6c48f33897acf7537576f7a412 (diff) | |
| download | nng-8eddc85dc9f621df44b85bf0769a1449109170ce.tar.gz nng-8eddc85dc9f621df44b85bf0769a1449109170ce.tar.bz2 nng-8eddc85dc9f621df44b85bf0769a1449109170ce.zip | |
Windows IPC works now.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/defs.h | 4 |
1 files changed, 4 insertions, 0 deletions
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; |
