Interface for mapping JSON configuration objects to C structures.
This commit is contained in:
@@ -173,6 +173,10 @@ nxt_container_of(p, type, field) \
|
||||
(type *) ((u_char *) (p) - offsetof(type, field))
|
||||
|
||||
|
||||
#define nxt_pointer_to(p, offset) \
|
||||
((void *) ((char *) (p) + (offset)))
|
||||
|
||||
|
||||
#define nxt_value_at(type, p, offset) \
|
||||
*(type *) ((u_char *) p + offset)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user