123456789101112131415161718192021 |
- #pragma once
- #ifndef BASELIB_ALIGN_OF
- #if defined(__cplusplus)
- #define BASELIB_ALIGN_OF(TYPE_) alignof(TYPE_)
- #elif STDC_VERSION >= 201112L
- #define BASELIB_ALIGN_OF(TYPE_) _Alignof(TYPE_)
- #else
- #define BASELIB_ALIGN_OF(TYPE_) COMPILER_ALIGN_OF(TYPE_)
- #endif
- #endif
- #ifndef BASELIB_ALIGN_AS
- #define BASELIB_ALIGN_AS(ALIGNMENT_) COMPILER_ALIGN_AS(ALIGNMENT_)
- #endif
|