Add support for using DEPRECATED to mark scripting API as obsolete

This commit is contained in:
Wojtek Figat
2021-10-12 23:48:47 +02:00
parent 8610db2e63
commit 4e6fa25877
8 changed files with 67 additions and 13 deletions

View File

@@ -19,7 +19,7 @@
#define ALIGN_BEGIN(_align)
#define ALIGN_END(_align) __attribute__( (aligned(_align) ) )
#define OFFSET_OF(X, Y) __builtin_offsetof(X, Y)
#define DEPRECATED
#define DEPRECATED [[deprecated]]
#pragma clang diagnostic ignored "-Wswitch"
#pragma clang diagnostic ignored "-Wmacro-redefined"
@@ -44,7 +44,7 @@
#define ALIGN_BEGIN(_align)
#define ALIGN_END(_align) __attribute__( (aligned(_align) ) )
#define OFFSET_OF(X, Y) __builtin_offsetof(X, Y)
#define DEPRECATED __attribute__((deprecated))
#define DEPRECATED [[deprecated]]
#elif defined(__INTEL_COMPILER)