#define nopoll_new (   type,
  count 
)    (type *) nopoll_calloc (count, sizeof (type))

Support macro to allocate memory using nopoll_calloc function, making a casting and using the sizeof keyword.

Parameters
typeThe type to allocate
countHow many items to allocate.
Returns
A newly allocated pointer.

Referenced by nopoll_conn_close_ext(), nopoll_conn_complete_handshake(), nopoll_conn_get_msg(), nopoll_conn_opts_new(), nopoll_ctx_new(), nopoll_ctx_set_certificate(), nopoll_listener_from_socket(), nopoll_msg_join(), and nopoll_strdup_printfv().