9#pragma warning(disable : 4251)
14#define WPILIB_DLLEXPORT __attribute__((dllexport))
16#define WPILIB_DLLEXPORT __declspec(dllexport)
19#elif defined(WPILIB_IMPORTS)
22#define WPILIB_DLLEXPORT __attribute__((dllimport))
24#define WPILIB_DLLEXPORT __declspec(dllimport)
28#define WPILIB_DLLEXPORT
34#define WPILIB_DLLEXPORT __attribute__((visibility("default")))
36#define WPILIB_DLLEXPORT
94#define EXPORT_TEMPLATE_DECLARE(export) \
95 EXPORT_TEMPLATE_INVOKE(DECLARE, EXPORT_TEMPLATE_STYLE(export, ), export)
96#define EXPORT_TEMPLATE_DEFINE(export) \
97 EXPORT_TEMPLATE_INVOKE(DEFINE, EXPORT_TEMPLATE_STYLE(export, ), export)
105#define EXPORT_TEMPLATE_INVOKE(which, style, export) \
106 EXPORT_TEMPLATE_INVOKE_2(which, style, export)
107#define EXPORT_TEMPLATE_INVOKE_2(which, style, export) \
108 EXPORT_TEMPLATE_##which##_##style(export, )
111#define EXPORT_TEMPLATE_DECLARE_DEFAULT(export, _) export
112#define EXPORT_TEMPLATE_DEFINE_DEFAULT(export, _)
117#define EXPORT_TEMPLATE_DECLARE_MSVC_HACK(export, _)
118#define EXPORT_TEMPLATE_DEFINE_MSVC_HACK(export, _) export
135#define EXPORT_TEMPLATE_STYLE(export, _) EXPORT_TEMPLATE_STYLE_2(export, )
136#define EXPORT_TEMPLATE_STYLE_2(export, _) \
137 EXPORT_TEMPLATE_STYLE_3( \
138 EXPORT_TEMPLATE_STYLE_MATCH_foj3FJo5StF0OvIzl7oMxA##export)
139#define EXPORT_TEMPLATE_STYLE_3(style) style
148#define EXPORT_TEMPLATE_STYLE_MATCH_foj3FJo5StF0OvIzl7oMxA DEFAULT
149#define EXPORT_TEMPLATE_STYLE_MATCH_foj3FJo5StF0OvIzl7oMxA__attribute__(...) \
151#define EXPORT_TEMPLATE_STYLE_MATCH_foj3FJo5StF0OvIzl7oMxA__declspec(arg) \
152 EXPORT_TEMPLATE_STYLE_MATCH_DECLSPEC_##arg
155#define EXPORT_TEMPLATE_STYLE_MATCH_DECLSPEC_dllexport MSVC_HACK
156#define EXPORT_TEMPLATE_STYLE_MATCH_DECLSPEC_dllimport DEFAULT
180#define EXPORT_TEMPLATE_TEST(want, export) \
181 static_assert(EXPORT_TEMPLATE_INVOKE( \
182 TEST_##want, EXPORT_TEMPLATE_STYLE(export, ), export), \
184#define EXPORT_TEMPLATE_TEST_DEFAULT_DEFAULT(...) true
185#define EXPORT_TEMPLATE_TEST_MSVC_HACK_MSVC_HACK(...) true
192#undef EXPORT_TEMPLATE_TEST
193#undef EXPORT_TEMPLATE_TEST_DEFAULT_DEFAULT
194#undef EXPORT_TEMPLATE_TEST_MSVC_HACK_MSVC_HACK
#define EXPORT_TEMPLATE_TEST(want, export)
Definition: SymbolExports.h:180