You've already forked godot
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user