Skip to content

Commit

Permalink
karm-base: Fix name conflic with the std lib.
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepy-monax committed May 11, 2024
1 parent abec45c commit 4cbb5dc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/libs/karm-base/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ namespace Karm {

// MARK: Count -----------------------------------------------------------------

#define __count(_0, _1_, _2_, _3_, _4_, _5_, _6_, _7_, _8_, _9_, _10_, _11_, _12_, _13_, _14_, _15_, _16_, _17_, _18_, _19_, _20_, _21_, _22_, _23_, _24_, _25_, _26_, _27_, _28_, _29_, _30_, _31_, _32_, _33_, _34_, _35_, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, count, ...) count
#define count$(__args...) __count(0, ##__args, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0)
#define __count$(_0, _1_, _2_, _3_, _4_, _5_, _6_, _7_, _8_, _9_, _10_, _11_, _12_, _13_, _14_, _15_, _16_, _17_, _18_, _19_, _20_, _21_, _22_, _23_, _24_, _25_, _26_, _27_, _28_, _29_, _30_, _31_, _32_, _33_, _34_, _35_, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70, count, ...) count
#define count$(__args...) __count$(0, ##__args, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0)

// MARK: Eval ------------------------------------------------------------------

#define __eval0(...) __VA_ARGS__
#define __eval1(...) __eval0(__eval0(__eval0(__VA_ARGS__)))
#define __eval2(...) __eval1(__eval1(__eval1(__VA_ARGS__)))
#define __eval3(...) __eval2(__eval2(__eval2(__VA_ARGS__)))
#define __eval4(...) __eval3(__eval3(__eval3(__VA_ARGS__)))
#define __eval0$(...) __VA_ARGS__
#define __eval1$(...) __eval0$(__eval0$(__eval0$(__VA_ARGS__)))
#define __eval2$(...) __eval1$(__eval1$(__eval1$(__VA_ARGS__)))
#define __eval3$(...) __eval2$(__eval2$(__eval2$(__VA_ARGS__)))
#define __eval4$(...) __eval3$(__eval3$(__eval3$(__VA_ARGS__)))

#define eval$(...) __eval4(__eval4(__eval4(__VA_ARGS__)))
#define eval$(...) __eval4$(__eval4$(__eval4$(__VA_ARGS__)))

// MARK: Map -------------------------------------------------------------------

Expand Down

0 comments on commit 4cbb5dc

Please sign in to comment.