Skip to content

Commit

Permalink
Fix ABI namespace on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgunter committed Aug 3, 2024
1 parent 96b1670 commit a1560e7
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions include/whirlwind/common/namespace.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,16 @@

#include "version.hpp"

/**
* @def WHIRLWIND_CONCATENATE(...)
*
* Concatenate zero or more (up to eight) tokens. Macros are expanded.
*/
#define WHIRLWIND_CONCATENATE_(a, b, c, d, e, f, g, h, ...) a##b##c##d##e##f##g##h
#define WHIRLWIND_CONCATENATE(...) WHIRLWIND_CONCATENATE_(__VA_ARGS__, , , , , , , , )

/**
* @def WHIRLWIND_ABI_NAMESPACE
*
* The name of the inline ABI namespace.
*/
#define WHIRLWIND_MAKE_ABI_NAMESPACE_IMPL(epoch, patch) abi_##epoch##_##patch
#define WHIRLWIND_MAKE_ABI_NAMESPACE(epoch, patch) \
WHIRLWIND_MAKE_ABI_NAMESPACE_IMPL(epoch, patch)
#define WHIRLWIND_ABI_NAMESPACE \
WHIRLWIND_CONCATENATE(abi_, WHIRLWIND_VERSION_EPOCH, _, WHIRLWIND_VERSION_PATCH)
WHIRLWIND_MAKE_ABI_NAMESPACE(WHIRLWIND_VERSION_EPOCH, WHIRLWIND_VERSION_PATCH)

/**
* @def WHIRLWIND_NAMESPACE
Expand Down

0 comments on commit a1560e7

Please sign in to comment.