Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
Ignore me, just formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFrench committed Oct 25, 2017
1 parent 7b9d1a2 commit d911f58
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,16 +318,18 @@ static const char * method_strmap[] = {
return 0; \
}

#define __HTPARSE_GENDHOOK(__n) \
static inline int hook_ ## __n ## _run(htparser * p, htparse_hooks * hooks, const char * s, size_t l) \
{ \
log_debug("enter"); \
if (hooks && (hooks)->__n) \
{ \
return (hooks)->__n(p, s, l); \
} \
\
return 0; \
#define __HTPARSE_GENDHOOK(__n) \
static inline int hook_ ## __n ## _run(htparser * p, \
htparse_hooks * hooks, \
const char * s, size_t l) \
{ \
log_debug("enter"); \
if (hooks && (hooks)->__n) \
{ \
return (hooks)->__n(p, s, l); \
} \
\
return 0; \
}

__HTPARSE_GENHOOK(on_msg_begin)
Expand Down

0 comments on commit d911f58

Please sign in to comment.