1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #100023 from Repiteo/core/module-includes-header-strip

Core: Avoid including `modules/modules_enabled.gen.h` in headers
This commit is contained in:
Thaddeus Crews
2025-03-11 19:54:48 -05:00
8 changed files with 29 additions and 31 deletions

View File

@@ -36,12 +36,7 @@
#include "core/io/stream_peer_tcp.h"
#include "core/io/tcp_server.h"
#include "modules/modules_enabled.gen.h" // For jsonrpc.
#ifdef MODULE_JSONRPC_ENABLED
#include "modules/jsonrpc/jsonrpc.h"
#else
#error "Can't build GDScript LSP without JSONRPC module."
#endif
#define LSP_MAX_BUFFER_SIZE 4194304
#define LSP_MAX_CLIENTS 8

View File

@@ -32,6 +32,10 @@
#ifdef TOOLS_ENABLED
#include "modules/modules_enabled.gen.h" // For jsonrpc.
#ifdef MODULE_JSONRPC_ENABLED
#include "tests/test_macros.h"
#include "../language_server/gdscript_extend_parser.h"
@@ -506,4 +510,6 @@ func f():
} // namespace GDScriptTests
#endif // MODULE_JSONRPC_ENABLED
#endif // TOOLS_ENABLED