summaryrefslogtreecommitdiffstats
path: root/modules/mono/utils
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-06-13 16:56:21 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-06-15 14:35:45 +0200
commit25b2f1780a9c7d7ae5579cc87c89b0c7e2baa14d (patch)
tree40d2d50d34c175da3b7c5123e8918cc5816bd32b /modules/mono/utils
parent773414606079fa745d1c37fce49324ab6a09e972 (diff)
downloadredot-engine-25b2f1780a9c7d7ae5579cc87c89b0c7e2baa14d.tar.gz
Style: Harmonize header includes in modules
This applies our existing style guide, and adds a new rule to that style guide for modular components such as platform ports and modules: Includes from the platform port or module ("local" includes) should be listed first in their own block using relative paths, before Godot's "core" includes which use "absolute" (project folder relative) paths, and finally thirdparty includes. Includes in `#ifdef`s come after their relevant section, i.e. the overall structure is: - Local includes * Conditional local includes - Core includes * Conditional core includes - Thirdparty includes * Conditional thirdparty includes
Diffstat (limited to 'modules/mono/utils')
-rw-r--r--modules/mono/utils/path_utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mono/utils/path_utils.cpp b/modules/mono/utils/path_utils.cpp
index 7b3f212734..be5578c1d0 100644
--- a/modules/mono/utils/path_utils.cpp
+++ b/modules/mono/utils/path_utils.cpp
@@ -35,6 +35,8 @@
#include "core/io/file_access.h"
#include "core/os/os.h"
+#include <stdlib.h>
+
#ifdef WINDOWS_ENABLED
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@@ -47,8 +49,6 @@
#define ENV_PATH_SEP ":"
#endif
-#include <stdlib.h>
-
namespace path {
String find_executable(const String &p_name) {