Replaced ALIGN macro with alignas

This commit is contained in:
Tom Lally 2022-08-27 20:34:04 +01:00
parent ad1b38c3a9
commit f33540faa1
3 changed files with 16 additions and 18 deletions

View file

@ -229,7 +229,6 @@ typedef union _LARGE_INTEGER {
#define DLLEXPORT __declspec(dllexport)
#define DLLIMPORT __declspec(dllimport)
#define DEBUG_BREAK __debugbreak()
#define ALIGN(N) __declspec(align(N))
#define NOINLINE __declspec(noinline)
#define ASSUME(X) __assume(X)
#define THREAD_LOCAL __declspec(thread)
@ -240,7 +239,6 @@ typedef union _LARGE_INTEGER {
// fixme: random stack overflow solution. use with caution
#include <csignal>
#define DEBUG_BREAK raise(SIGTRAP)
#define ALIGN(N) __attribute__((aligned (N)))
#define NOINLINE __attribute__((noinline))
// fixme: random stack overflow solution. use it with caution
#define ASSUME(X) do { if (!(X)) __builtin_unreachable(); } while (0)