blob: 7a9f7cb498d60bfc2275538c664221a3b94f3815 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include "ruby.h"
#include <stddef.h>
struct T {
char _;
double t;
};
RBIMPL_STATIC_ASSERT(RUBY_ALIGNOF, RUBY_ALIGNOF(double) == offsetof(struct T, t));
void
Init_RUBY_ALIGNOF(void)
{
// Windows linker mandates this symbol to exist.
}
|