mirror of
https://github.com/espressif/openthread.git
synced 2026-08-12 21:57:47 +00:00
[style] harmonize feature check and header includes (#6399)
This commit harmonizes how the feature config checks are done within OT core modules. In header `.hpp` files, any related `#if` config check is done immediately after the `"openthread-core-config.h"` is included. This way the rest of definitions are skipped over if the feature is not being used. In `cpp` source files the `#if` check is done immediately after including the related header file.
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
*/
|
||||
|
||||
#include "openthread-core-config.h"
|
||||
|
||||
#include <openthread/crypto.h>
|
||||
#include <openthread/error.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user