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
commit 0a30831bed
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
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