How to deprecate __STATIC_INLINE function. I know that I have to use __attribute__ ((deprecated)) but how to use it for the following function:
__STATIC_INLINE void Foo()
{
...
}
Update:
My goal is to use a #define that declare the deprecation attribute like:
#define THIS_IS_DEPRECATED __attribute__ ((deprecated))
and use the #define to deprecate APIs.
Update 2: Proposed solution worked 50% if I use:
__STATIC_INLINE void THIS_IS_DEPRECATED Foo()
{
...
}
Now I am getting the deprecation warning, but another error appeared:
error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Foo'
428 | __STATIC_INLINE void THIS_IS_DEPRECATED Foo(void)
| ^~~~~~~~~