Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrono Law committed Mar 31, 2016
1 parent 8f85b91 commit bb50ce2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions preprocessor/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ BOOST_PP_ASSERT(BOOST_PP_EQUAL(x, 36))
/////////////////

#define helper(z, n, d) BOOST_PP_CAT(d,n)
#define DECL_VAS(n, var) BOOST_PP_ENUM(n, helper, var)
#define DECL_VARS(n, var) BOOST_PP_ENUM(n, helper, var)

int DECL_VAS(10, x);
int DECL_VARS(10, x);

#undef helper
#undef DECL_VAS
#undef DECL_VARS

#define NGX_NULL_HELPER(z, n, d) d
#define NGX_MODULE_NULL(n) \
Expand All @@ -35,10 +35,10 @@ int DECL_VAS(10, x);
/////////////////

#define helper(z, n, d) d##n{n};
#define DECL_VAS(n, decl) BOOST_PP_REPEAT(n, helper, decl)
#define DECL_VARS(n, decl) BOOST_PP_REPEAT(n, helper, decl)

DECL_VAS(3, int x)
DECL_VARS(3, int x)

#undef helper
#undef DECL_VAS
#undef DECL_VARS

0 comments on commit bb50ce2

Please sign in to comment.