mirror of
https://github.com/espressif/openthread.git
synced 2026-07-15 16:44:09 +00:00
[config-header] simplify config header file includes (#2255)
This commit simplifies the config header files includes in OpenThread core and non-public source files. With this change the "openthread-core-config.h" becomes the main config header file. This header file includes all other config ones: 1) The `configure` generated `<openthread/config.h>; 2) The project specific one by `OPENTHREAD_PROJECT_CORE_CONFIG_FILE`; 3) The "openthread-core-default-config.h" defining default settings. With the change in this commit, all header files include "openthread- core-config.h" as the first `#include`, and in `.cpp` files, the first `#include` continues to be the unit's corresponding header file. The new model ensures that the configuration settings are visible and consistent in all the source files. This commit also updates the style guide document accordingly.
This commit is contained in:
committed by
Jonathan Hui
parent
23f465c681
commit
2ea56446a4
@@ -33,7 +33,7 @@
|
||||
|
||||
#define WPP_NAME "instance_api.tmh"
|
||||
|
||||
#include <openthread/config.h>
|
||||
#include "openthread-core-config.h"
|
||||
|
||||
#include <openthread/instance.h>
|
||||
#include <openthread/platform/misc.h>
|
||||
|
||||
Reference in New Issue
Block a user