1 #ifndef RBIMPL_DLLEXPORT_H
2 #define RBIMPL_DLLEXPORT_H
23 #include "ruby/internal/config.h"
40 #if defined(RUBY_EXPORT)
41 # define RUBY_EXTERN extern
43 # define RUBY_EXTERN extern __declspec(dllimport)
45 # define RUBY_EXTERN extern
48 #ifndef RUBY_SYMBOL_EXPORT_BEGIN
49 # define RUBY_SYMBOL_EXPORT_BEGIN
52 #ifndef RUBY_SYMBOL_EXPORT_END
53 # define RUBY_SYMBOL_EXPORT_END
56 #ifndef RUBY_FUNC_EXPORTED
57 # define RUBY_FUNC_EXPORTED
64 #if defined(__DOXYGEN__)
65 # define RBIMPL_SYMBOL_EXPORT_BEGIN()
66 #elif defined(__cplusplus)
67 # define RBIMPL_SYMBOL_EXPORT_BEGIN() RUBY_SYMBOL_EXPORT_BEGIN extern "C" {
69 # define RBIMPL_SYMBOL_EXPORT_BEGIN() RUBY_SYMBOL_EXPORT_BEGIN
73 #if defined(__DOXYGEN__)
74 # define RBIMPL_SYMBOL_EXPORT_END()
75 #elif defined(__cplusplus)
76 # define RBIMPL_SYMBOL_EXPORT_END() } RUBY_SYMBOL_EXPORT_END
78 # define RBIMPL_SYMBOL_EXPORT_END() RUBY_SYMBOL_EXPORT_END
Defines RBIMPL_COMPILER_IS.