Ruby 3.4.5p51 (2025-07-16 revision 20cda200d3ce092571d0b5d342dadca69636cb0f)
|
Defines RUBY_ALIGNAS / RUBY_ALIGNOF. More...
#include "ruby/internal/stdalign.h"
Go to the source code of this file.
Macros | |
#define | RUBY_ALIGNAS RBIMPL_ALIGNAS |
Wraps (or simulates) alignas. | |
#define | RUBY_ALIGNOF RBIMPL_ALIGNOF |
Wraps (or simulates) alignof. |
Defines RUBY_ALIGNAS / RUBY_ALIGNOF.
Definition in file stdalign.h.
#define RUBY_ALIGNAS RBIMPL_ALIGNAS |
Wraps (or simulates) alignas.
This is C++11's alignas and is different from C11 _Alignas. For instance,
is a valid C++ while
is an invalid C because:
Definition at line 27 of file stdalign.h.
#define RUBY_ALIGNOF RBIMPL_ALIGNOF |
Wraps (or simulates) alignof.
We want C11's _Alignof. However in spite of its clear language, compilers (including GCC and clang) tend to have buggy implementations. We have to avoid such things to resort to our own version.
Definition at line 28 of file stdalign.h.