|
Ruby 4.0.5p0 (2026-05-20 revision 64336ffd0ee9e1f4c05891695a3d7b49cb709721)
|
Defines RBIMPL_ALIGNAS / RBIMPL_ALIGNOF. More...
#include "ruby/internal/config.h"#include "ruby/internal/compiler_is.h"#include "ruby/internal/has/attribute.h"#include "ruby/internal/has/declspec_attribute.h"#include "ruby/internal/has/feature.h"Go to the source code of this file.
Macros | |
| #define | RBIMPL_ALIGNAS alignas |
| Wraps (or simulates) alignas. | |
| #define | RBIMPL_ALIGNOF alignof |
| Wraps (or simulates) alignof. | |
Defines RBIMPL_ALIGNAS / RBIMPL_ALIGNOF.
Definition in file stdalign.h.
| #define RBIMPL_ALIGNAS 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 57 of file stdalign.h.
| #define RBIMPL_ALIGNOF 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 87 of file stdalign.h.