1#ifndef RBIMPL_DLLEXPORT_H
2#define RBIMPL_DLLEXPORT_H
29#if defined(MJIT_HEADER) && defined(_WIN32)
30# define RUBY_EXTERN extern __declspec(dllimport)
31#elif defined(RUBY_EXPORT)
32# define RUBY_EXTERN extern
34# define RUBY_EXTERN extern __declspec(dllimport)
36# define RUBY_EXTERN extern
39#ifndef RUBY_SYMBOL_EXPORT_BEGIN
40# define RUBY_SYMBOL_EXPORT_BEGIN
43#ifndef RUBY_SYMBOL_EXPORT_END
44# define RUBY_SYMBOL_EXPORT_END
47#ifndef RUBY_FUNC_EXPORTED
48# define RUBY_FUNC_EXPORTED
54#if ! defined(MJIT_HEADER)
55# define MJIT_FUNC_EXPORTED RUBY_FUNC_EXPORTED
56#elif ! RBIMPL_COMPILER_IS(MSVC)
57# define MJIT_FUNC_EXPORTED RUBY_FUNC_EXPORTED
59# define MJIT_FUNC_EXPORTED static
62#define MJIT_SYMBOL_EXPORT_BEGIN RUBY_SYMBOL_EXPORT_BEGIN
63#define MJIT_SYMBOL_EXPORT_END RUBY_SYMBOL_EXPORT_END
69# define MJIT_STATIC static
76#if defined(__DOXYGEN__)
77# define RBIMPL_SYMBOL_EXPORT_BEGIN()
78#elif defined(__cplusplus)
79# define RBIMPL_SYMBOL_EXPORT_BEGIN() RUBY_SYMBOL_EXPORT_BEGIN extern "C" {
81# define RBIMPL_SYMBOL_EXPORT_BEGIN() RUBY_SYMBOL_EXPORT_BEGIN
85#if defined(__DOXYGEN__)
86# define RBIMPL_SYMBOL_EXPORT_END()
87#elif defined(__cplusplus)
88# define RBIMPL_SYMBOL_EXPORT_END() } RUBY_SYMBOL_EXPORT_END
90# define RBIMPL_SYMBOL_EXPORT_END() RUBY_SYMBOL_EXPORT_END
Defines RBIMPL_COMPILER_IS.
Thin wrapper to ruby/config.h.