You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deprecation of features of BLE API can be more visible to end user. There is two ways to improve this:
Documentation: doxygen support a directive for deprecated elements: \deprecated. This tag should be use for all deprecated entities in BLE API.
Warning at compile time: compiler-polyfill now support a __deprecated_message macro. It can be used to provide a usefull information about deprecated feature at compilation time. This feature can be used to tag the following entities:
functions: void foo(void) __deprecated_message("This function is deprecated, use void bar(void) instead")
variables: int foo __deprecated_message("This variable is deprecated, use bar instead") = 0;
variables: int foo __deprecated_message("This variable is deprecated, use bar instead") = 0;
types: class Foo __deprecated_message("Foo class is deprecated, use Bar instead") { };
typedef: typedef Foo Bar __deprecated_message("This typedef is deprecated, use Baz instead")
The text was updated successfully, but these errors were encountered:
Deprecation of features of BLE API can be more visible to end user. There is two ways to improve this:
\deprecated
. This tag should be use for all deprecated entities in BLE API.__deprecated_message
macro. It can be used to provide a usefull information about deprecated feature at compilation time. This feature can be used to tag the following entities:void foo(void) __deprecated_message("This function is deprecated, use void bar(void) instead")
int foo __deprecated_message("This variable is deprecated, use bar instead") = 0
;int foo __deprecated_message("This variable is deprecated, use bar instead") = 0
;class Foo __deprecated_message("Foo class is deprecated, use Bar instead") { };
typedef Foo Bar __deprecated_message("This typedef is deprecated, use Baz instead")
The text was updated successfully, but these errors were encountered: