2 #define RUBY_DEFINES_H 1
13 #include "ruby/internal/config.h"
18 #ifdef HAVE_SYS_TYPES_H
19 # include <sys/types.h>
22 #ifdef HAVE_SYS_STAT_H
23 # include <sys/stat.h>
36 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
46 #ifdef HAVE_INTTYPES_H
47 # include <inttypes.h>
54 #ifdef HAVE_STDALIGN_H
62 #ifdef HAVE_SYS_SELECT_H
63 # include <sys/select.h>
66 #ifdef RUBY_USE_SETJMPEX
67 # include <setjmpex.h>
73 #include "ruby/backward/2/attributes.h"
74 #include "ruby/backward/2/bool.h"
79 #include "ruby/missing.h"
89 # define RB_GNUC_EXTENSION __extension__
91 # define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
93 # define RB_GNUC_EXTENSION
94 # define RB_GNUC_EXTENSION_BLOCK(x) (x)
102 #ifndef RUBY_MBCHAR_MAXSIZE
103 # define RUBY_MBCHAR_MAXSIZE INT_MAX
109 void rb_sparc_flush_register_windows(
void);
111 # define FLUSH_REGISTER_WINDOWS rb_sparc_flush_register_windows()
113 # define FLUSH_REGISTER_WINDOWS ((void)0)
Defines ASSUME / RB_LIKELY / UNREACHABLE.
Defines RUBY_ALIGNAS / RUBY_ALIGNOF.
Tweaking visibility of C variables/functions.
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Support for so-called dosish systems.
Defines RBIMPL_ALIGNAS / RBIMPL_ALIGNOF.