mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
03c229b25b
fix how `stack_aligned_protected_function` and its friends behave add new internal handler details to allow for stack-based handlers with maximum performance update `string_shim` typedef to simply be called `string_view` and use `string_view` in all public-facing APIs.
28 lines
656 B
C++
28 lines
656 B
C++
#pragma once
|
|
|
|
namespace my_object {
|
|
|
|
#if defined _MSC_VER
|
|
#define MY_OBJECT_VC
|
|
#elif defined __GNUC__
|
|
#define MY_OBJECT_GCC
|
|
#elif defined __clang__
|
|
#define MY_OBJECT_CLANG
|
|
#endif
|
|
|
|
#if defined MY_OBJECT_VC
|
|
#if defined MY_OBJECT_DLL
|
|
#if defined MY_OBJECT_BUILD
|
|
#define MY_OBJECT_API __declspec(dllexport)
|
|
#else
|
|
#define MY_OBJECT_API __declspec(dllexport)
|
|
#endif // MY_OBJECT_BUILD - Building the Library vs. Using the Library
|
|
#else
|
|
#define MY_OBJECT_API
|
|
#endif // Building a DLL vs. Static Library
|
|
#else // g++ / clang++
|
|
#define MY_OBJECT_API __attribute__ ((visibility ("default")))
|
|
#endif // MY_OBJECT_BUILD
|
|
|
|
} // namespace my_object
|