[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:
Abtin Keshavarzian
2021-04-05 14:13:24 -07:00
committed by GitHub
parent 29f6f275b8
commit 743e91361c
111 changed files with 299 additions and 176 deletions
+1
View File
@@ -32,6 +32,7 @@
*/
#include "openthread-core-config.h"
#include <openthread/crypto.h>
#include <openthread/error.h>