diff options
Diffstat (limited to 'src/nxt_clang.h')
-rw-r--r-- | src/nxt_clang.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_clang.h b/src/nxt_clang.h index a9b8cd9e..a10de08a 100644 --- a/src/nxt_clang.h +++ b/src/nxt_clang.h @@ -262,4 +262,8 @@ nxt_trunc_ptr(p, a) \ (u_char *) ((uintptr_t) (p) & ~((uintptr_t) (a) - 1)) +#define nxt_length(s) \ + (sizeof(s) - 1) + + #endif /* _NXT_CLANG_H_INCLUDED_ */ |