mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 02:25:37 -05:00
Fixed GCC build.
This commit is contained in:
parent
e14c5b1c3e
commit
383b6a14ee
1 changed files with 6 additions and 1 deletions
|
@ -26,7 +26,12 @@ namespace bgfx
|
|||
#define SPV_OPERAND_7(_a0, _a1, _a2, _a3, _a4, _a5, _a6) SPV_OPERAND_1(_a0), SPV_OPERAND_6(_a1, _a2, _a3, _a4, _a5, _a6)
|
||||
#define SPV_OPERAND_8(_a0, _a1, _a2, _a3, _a4, _a5, _a6, _a7) SPV_OPERAND_1(_a0), SPV_OPERAND_7(_a1, _a2, _a3, _a4, _a5, _a6, _a7)
|
||||
#define SPV_OPERAND_9(_a0, _a1, _a2, _a3, _a4, _a5, _a6, _a7, _a8) SPV_OPERAND_1(_a0), SPV_OPERAND_8(_a1, _a2, _a3, _a4, _a5, _a6, _a7, _a8)
|
||||
#define SPV_OPERAND(...) { BX_MACRO_DISPATCHER(SPV_OPERAND_, __VA_ARGS__) BX_VA_ARGS_PASS(__VA_ARGS__) }
|
||||
#if BX_COMPILER_MSVC
|
||||
// Workaround MSVS bug...
|
||||
# define SPV_OPERAND(...) { BX_MACRO_DISPATCHER(SPV_OPERAND_, __VA_ARGS__) BX_VA_ARGS_PASS(__VA_ARGS__) }
|
||||
#else
|
||||
# define SPV_OPERAND(...) { BX_MACRO_DISPATCHER(SPV_OPERAND_, __VA_ARGS__)(__VA_ARGS__) }
|
||||
#endif // BX_COMPILER_MSVC
|
||||
#define _ Count
|
||||
{ false, false, /* Nop, // 0 */ SPV_OPERAND(_) },
|
||||
{ true, true, /* Undef, // 1 */ SPV_OPERAND(_) },
|
||||
|
|
Loading…
Reference in a new issue