You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2021/06/07 14:57:06 UTC

[GitHub] [mynewt-nimble] sjanc opened a new issue #985: Unify handling of disabled/enabled features

sjanc opened a new issue #985:
URL: https://github.com/apache/mynewt-nimble/issues/985


   Currently (depending on feature) enabling/disabling is done by either compile time #ifdef, returning BLE_HS_ENOTSUP in runtime for disabled features, or by wrapping one feature on top of other API.
   
   Runtime errors are not the best IMHO as those should be reserved for recoverable scenarios. I propose that we always do #ifdef so that application developer can detect mis-configuration at build time.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org