mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Renamed DEPRECATE to SOL_DEPRECATED
This commit is contained in:
parent
2243bec052
commit
23ed27df89
|
@ -22,14 +22,14 @@
|
|||
#ifndef SOL_DEPRECATE_HPP
|
||||
#define SOL_DEPRECATE_HPP
|
||||
|
||||
#ifndef DEPRECATE
|
||||
#ifdef _MSC_VER
|
||||
#define DEPRECATE __declspec(deprecated)
|
||||
#elif __GNUC__
|
||||
#define DEPRECATE __attribute__((deprecated))
|
||||
#else
|
||||
#define DEPRECATE [[deprecated]]
|
||||
#endif // VC++ || GCC || Others
|
||||
#endif // DEPRECATE
|
||||
#ifndef SOL_DEPRECATED
|
||||
#ifdef _MSC_VER
|
||||
#define SOL_DEPRECATED __declspec(deprecated)
|
||||
#elif __GNUC__
|
||||
#define SOL_DEPRECATED __attribute__((deprecated))
|
||||
#else
|
||||
#define SOL_DEPRECATED [[deprecated]]
|
||||
#endif // compilers
|
||||
#endif // SOL_DEPRECATED
|
||||
|
||||
#endif // SOL_DEPRECATE_HPP
|
Loading…
Reference in New Issue
Block a user