diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-07 11:17:39 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-07 11:17:39 +0200 |
commit | 35d7a6bb691d7e0564cda324b3d724caf4901545 (patch) | |
tree | 6fd253c64157a3f4dcf44658d4932a9f260bf0e3 | |
parent | 867a65c0046848bc5e6867ae76f16db293ba4101 (diff) | |
download | lanes-35d7a6bb691d7e0564cda324b3d724caf4901545.tar.gz lanes-35d7a6bb691d7e0564cda324b3d724caf4901545.tar.bz2 lanes-35d7a6bb691d7e0564cda324b3d724caf4901545.zip |
Use a precompiled header to speed up the build
37 files changed, 45 insertions, 70 deletions
diff --git a/deep_test/deep_test.args.json b/deep_test/deep_test.args.json index a94ccbb..fbef41c 100644 --- a/deep_test/deep_test.args.json +++ b/deep_test/deep_test.args.json | |||
@@ -8,7 +8,7 @@ | |||
8 | "Items": [ | 8 | "Items": [ |
9 | { | 9 | { |
10 | "Id": "10e30bb2-dc23-4882-b918-b5939c14e588", | 10 | "Id": "10e30bb2-dc23-4882-b918-b5939c14e588", |
11 | "Command": "-e \"REPEAT=1000, SIZE=1000\" -i deeptest.lua" | 11 | "Command": "-e \"REPEAT=1000, SIZE=1000 DEEP='stack_abuser'\" -i deeptest.lua" |
12 | } | 12 | } |
13 | ] | 13 | ] |
14 | } | 14 | } |
diff --git a/deep_test/deep_test.cpp b/deep_test/deep_test.cpp index c75c360..04eb98c 100644 --- a/deep_test/deep_test.cpp +++ b/deep_test/deep_test.cpp | |||
@@ -1,3 +1,4 @@ | |||
1 | #include "lanes/src/_pch.h" | ||
1 | #include "lanes/src/deep.h" | 2 | #include "lanes/src/deep.h" |
2 | #include "lanes/src/compat.h" | 3 | #include "lanes/src/compat.h" |
3 | 4 | ||
diff --git a/docs/index.html b/docs/index.html index e17c7db..b83c159 100644 --- a/docs/index.html +++ b/docs/index.html | |||
@@ -1781,7 +1781,7 @@ static MyDeepFactory g_MyDeepFactory; | |||
1781 | </ul> | 1781 | </ul> |
1782 | Take a look at <tt>LindaFactory</tt> in <tt>lindafactory.cpp</tt> or <tt>MyDeepFactory</tt> in <tt>deep_test.cpp</tt>. | 1782 | Take a look at <tt>LindaFactory</tt> in <tt>lindafactory.cpp</tt> or <tt>MyDeepFactory</tt> in <tt>deep_test.cpp</tt>. |
1783 | </li> | 1783 | </li> |
1784 | <li>Include <tt>"deep.h"</tt> and either link against Lanes or statically compile <tt>compat.cpp deep.cpp</tt> into your module if you want to avoid a runtime dependency for users that will use your module without Lanes. | 1784 | <li>Include <tt>"_pch.h", "deep.h"</tt> and either link against Lanes or statically compile <tt>compat.cpp deep.cpp</tt> into your module if you want to avoid a runtime dependency for users that will use your module without Lanes. |
1785 | <li>Instanciate your userdata using <tt>yourFactoryObject.pushDeepUserdata()</tt>, instead of the regular <tt>lua_newuserdata()</tt>. Given a <tt>factory</tt>, it sets up the support structures and returns a state-specific proxy userdata for accessing your data. This proxy can also be copied over to other lanes.</li> | 1785 | <li>Instanciate your userdata using <tt>yourFactoryObject.pushDeepUserdata()</tt>, instead of the regular <tt>lua_newuserdata()</tt>. Given a <tt>factory</tt>, it sets up the support structures and returns a state-specific proxy userdata for accessing your data. This proxy can also be copied over to other lanes.</li> |
1786 | <li>Accessing the deep userdata from your C code, use <tt>yourFactoryObject.toDeep()</tt> instead of the regular <tt>lua_touserdata()</tt>.</li> | 1786 | <li>Accessing the deep userdata from your C code, use <tt>yourFactoryObject.toDeep()</tt> instead of the regular <tt>lua_touserdata()</tt>.</li> |
1787 | <li>To push an existing proxy on the stack, use <tt>DeepPrelude::push(L)</tt>.</li> | 1787 | <li>To push an existing proxy on the stack, use <tt>DeepPrelude::push(L)</tt>.</li> |
diff --git a/lanes-4.0.0-0.rockspec b/lanes-4.0.0-0.rockspec index a98e64e..120cf51 100644 --- a/lanes-4.0.0-0.rockspec +++ b/lanes-4.0.0-0.rockspec | |||
@@ -60,6 +60,7 @@ build = { | |||
60 | { | 60 | { |
61 | sources = | 61 | sources = |
62 | { | 62 | { |
63 | "src/_pch.cpp", | ||
63 | "src/cancel.cpp", | 64 | "src/cancel.cpp", |
64 | "src/compat.cpp", | 65 | "src/compat.cpp", |
65 | "src/deep.cpp", | 66 | "src/deep.cpp", |
diff --git a/src/Makefile b/src/Makefile index 0362b8b..4990a05 100644 --- a/src/Makefile +++ b/src/Makefile | |||
@@ -7,7 +7,7 @@ | |||
7 | 7 | ||
8 | MODULE=lanes | 8 | MODULE=lanes |
9 | 9 | ||
10 | SRC=cancel.cpp compat.cpp deep.cpp intercopycontext.cpp keeper.cpp lane.cpp lanes.cpp linda.cpp lindafactory.cpp nameof.cpp state.cpp threading.cpp tools.cpp tracker.cpp universe.cpp | 10 | SRC=_pch.cpp cancel.cpp compat.cpp deep.cpp intercopycontext.cpp keeper.cpp lane.cpp lanes.cpp linda.cpp lindafactory.cpp nameof.cpp state.cpp threading.cpp tools.cpp tracker.cpp universe.cpp |
11 | 11 | ||
12 | OBJ=$(SRC:.cpp=.o) | 12 | OBJ=$(SRC:.cpp=.o) |
13 | 13 | ||
diff --git a/src/_pch.cpp b/src/_pch.cpp new file mode 100644 index 0000000..4082771 --- /dev/null +++ b/src/_pch.cpp | |||
@@ -0,0 +1 @@ | |||
#include "_pch.h" \ No newline at end of file | |||
diff --git a/src/_pch.h b/src/_pch.h new file mode 100644 index 0000000..67fe4a7 --- /dev/null +++ b/src/_pch.h | |||
@@ -0,0 +1,22 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #include <algorithm> | ||
4 | #include <array> | ||
5 | #include <atomic> | ||
6 | #include <bit> | ||
7 | #include <cassert> | ||
8 | #include <chrono> | ||
9 | #include <condition_variable> | ||
10 | #include <functional> | ||
11 | #include <iostream> | ||
12 | #include <latch> | ||
13 | #include <mutex> | ||
14 | #include <optional> | ||
15 | #include <ranges> | ||
16 | #include <source_location> | ||
17 | #include <stop_token> | ||
18 | #include <string_view> | ||
19 | #include <thread> | ||
20 | #include <tuple> | ||
21 | #include <type_traits> | ||
22 | #include <variant> | ||
diff --git a/src/cancel.cpp b/src/cancel.cpp index f53dc36..8845e9d 100644 --- a/src/cancel.cpp +++ b/src/cancel.cpp | |||
@@ -32,7 +32,7 @@ THE SOFTWARE. | |||
32 | =============================================================================== | 32 | =============================================================================== |
33 | ]]-- | 33 | ]]-- |
34 | */ | 34 | */ |
35 | 35 | #include "_pch.h" | |
36 | #include "cancel.h" | 36 | #include "cancel.h" |
37 | 37 | ||
38 | #include "debugspew.h" | 38 | #include "debugspew.h" |
diff --git a/src/cancel.h b/src/cancel.h index d60903c..df3cfad 100644 --- a/src/cancel.h +++ b/src/cancel.h | |||
@@ -14,8 +14,6 @@ extern "C" | |||
14 | #include "macros_and_utils.h" | 14 | #include "macros_and_utils.h" |
15 | #include "uniquekey.h" | 15 | #include "uniquekey.h" |
16 | 16 | ||
17 | #include <string_view> | ||
18 | |||
19 | // ################################################################################################# | 17 | // ################################################################################################# |
20 | 18 | ||
21 | class Lane; // forward | 19 | class Lane; // forward |
diff --git a/src/compat.cpp b/src/compat.cpp index 3b026b4..f0a3685 100644 --- a/src/compat.cpp +++ b/src/compat.cpp | |||
@@ -1,3 +1,4 @@ | |||
1 | #include "_pch.h" | ||
1 | #include "compat.h" | 2 | #include "compat.h" |
2 | 3 | ||
3 | #include "macros_and_utils.h" | 4 | #include "macros_and_utils.h" |
diff --git a/src/compat.h b/src/compat.h index 0ae7759..24a105f 100644 --- a/src/compat.h +++ b/src/compat.h | |||
@@ -24,9 +24,6 @@ extern "C" | |||
24 | #define LUA_JITLIBNAME "jit" | 24 | #define LUA_JITLIBNAME "jit" |
25 | #endif // LUA_JITLIBNAME | 25 | #endif // LUA_JITLIBNAME |
26 | 26 | ||
27 | #include <cassert> | ||
28 | #include <string_view> | ||
29 | |||
30 | // code is now preferring Lua 5.4 API | 27 | // code is now preferring Lua 5.4 API |
31 | 28 | ||
32 | // ################################################################################################# | 29 | // ################################################################################################# |
diff --git a/src/debugspew.h b/src/debugspew.h index ccebc0a..051742e 100644 --- a/src/debugspew.h +++ b/src/debugspew.h | |||
@@ -3,8 +3,6 @@ | |||
3 | #include "lanesconf.h" | 3 | #include "lanesconf.h" |
4 | #include "universe.h" | 4 | #include "universe.h" |
5 | 5 | ||
6 | #include <iostream> | ||
7 | |||
8 | // ################################################################################################# | 6 | // ################################################################################################# |
9 | 7 | ||
10 | #if USE_DEBUG_SPEW() | 8 | #if USE_DEBUG_SPEW() |
diff --git a/src/deep.cpp b/src/deep.cpp index 9538fdf..0fdcb31 100644 --- a/src/deep.cpp +++ b/src/deep.cpp | |||
@@ -31,14 +31,11 @@ THE SOFTWARE. | |||
31 | 31 | ||
32 | =============================================================================== | 32 | =============================================================================== |
33 | */ | 33 | */ |
34 | 34 | #include "_pch.h" | |
35 | #include "deep.h" | 35 | #include "deep.h" |
36 | 36 | ||
37 | #include "tools.h" | 37 | #include "tools.h" |
38 | 38 | ||
39 | #include <bit> | ||
40 | #include <cassert> | ||
41 | |||
42 | /*-- Metatable copying --*/ | 39 | /*-- Metatable copying --*/ |
43 | 40 | ||
44 | /*---=== Deep userdata ===---*/ | 41 | /*---=== Deep userdata ===---*/ |
@@ -17,9 +17,6 @@ extern "C" | |||
17 | #include "lanesconf.h" | 17 | #include "lanesconf.h" |
18 | #include "uniquekey.h" | 18 | #include "uniquekey.h" |
19 | 19 | ||
20 | #include <atomic> | ||
21 | #include <string_view> | ||
22 | |||
23 | // forwards | 20 | // forwards |
24 | enum class LookupMode; | 21 | enum class LookupMode; |
25 | class DeepFactory; | 22 | class DeepFactory; |
diff --git a/src/intercopycontext.cpp b/src/intercopycontext.cpp index 375a403..f00b268 100644 --- a/src/intercopycontext.cpp +++ b/src/intercopycontext.cpp | |||
@@ -23,7 +23,7 @@ THE SOFTWARE. | |||
23 | 23 | ||
24 | =============================================================================== | 24 | =============================================================================== |
25 | */ | 25 | */ |
26 | 26 | #include "_pch.h" | |
27 | #include "intercopycontext.h" | 27 | #include "intercopycontext.h" |
28 | 28 | ||
29 | #include "debugspew.h" | 29 | #include "debugspew.h" |
diff --git a/src/intercopycontext.h b/src/intercopycontext.h index 4f6ed89..ffa825f 100644 --- a/src/intercopycontext.h +++ b/src/intercopycontext.h | |||
@@ -2,8 +2,6 @@ | |||
2 | 2 | ||
3 | #include "tools.h" | 3 | #include "tools.h" |
4 | 4 | ||
5 | #include <string_view> | ||
6 | |||
7 | // forwards | 5 | // forwards |
8 | class Universe; | 6 | class Universe; |
9 | 7 | ||
diff --git a/src/keeper.cpp b/src/keeper.cpp index b8f2bd0..87f5505 100644 --- a/src/keeper.cpp +++ b/src/keeper.cpp | |||
@@ -37,6 +37,7 @@ | |||
37 | =============================================================================== | 37 | =============================================================================== |
38 | ]]-- | 38 | ]]-- |
39 | */ | 39 | */ |
40 | #include "_pch.h" | ||
40 | #include "keeper.h" | 41 | #include "keeper.h" |
41 | 42 | ||
42 | #include "intercopycontext.h" | 43 | #include "intercopycontext.h" |
@@ -44,10 +45,6 @@ | |||
44 | #include "linda.h" | 45 | #include "linda.h" |
45 | #include "state.h" | 46 | #include "state.h" |
46 | 47 | ||
47 | #include <algorithm> | ||
48 | #include <cassert> | ||
49 | #include <ranges> | ||
50 | |||
51 | // There is a table at _R[kLindasRegKey] (aka LindasDB) | 48 | // There is a table at _R[kLindasRegKey] (aka LindasDB) |
52 | // This table contains entries of the form [Linda*] = {KeysDB...} | 49 | // This table contains entries of the form [Linda*] = {KeysDB...} |
53 | // Each KeysDB contains entries of the form [key] = KeyUD | 50 | // Each KeysDB contains entries of the form [key] = KeyUD |
diff --git a/src/keeper.h b/src/keeper.h index 5cc7422..9c08c26 100644 --- a/src/keeper.h +++ b/src/keeper.h | |||
@@ -11,11 +11,6 @@ extern "C" | |||
11 | 11 | ||
12 | #include "uniquekey.h" | 12 | #include "uniquekey.h" |
13 | 13 | ||
14 | #include <atomic> | ||
15 | #include <mutex> | ||
16 | #include <optional> | ||
17 | #include <variant> | ||
18 | |||
19 | // forwards | 14 | // forwards |
20 | class Linda; | 15 | class Linda; |
21 | enum class LookupMode; | 16 | enum class LookupMode; |
diff --git a/src/lane.cpp b/src/lane.cpp index b55b611..ea3edb0 100644 --- a/src/lane.cpp +++ b/src/lane.cpp | |||
@@ -23,7 +23,7 @@ THE SOFTWARE. | |||
23 | 23 | ||
24 | =============================================================================== | 24 | =============================================================================== |
25 | */ | 25 | */ |
26 | 26 | #include "_pch.h" | |
27 | #include "lane.h" | 27 | #include "lane.h" |
28 | 28 | ||
29 | #include "debugspew.h" | 29 | #include "debugspew.h" |
@@ -4,13 +4,6 @@ | |||
4 | #include "uniquekey.h" | 4 | #include "uniquekey.h" |
5 | #include "universe.h" | 5 | #include "universe.h" |
6 | 6 | ||
7 | #include <chrono> | ||
8 | #include <condition_variable> | ||
9 | #include <latch> | ||
10 | #include <stop_token> | ||
11 | #include <string_view> | ||
12 | #include <thread> | ||
13 | |||
14 | // ################################################################################################# | 7 | // ################################################################################################# |
15 | 8 | ||
16 | // xxh64 of string "kExtendedStackTraceRegKey" generated at https://www.pelock.com/products/hash-calculator | 9 | // xxh64 of string "kExtendedStackTraceRegKey" generated at https://www.pelock.com/products/hash-calculator |
diff --git a/src/lanes.cpp b/src/lanes.cpp index c3d0928..96d4ecd 100644 --- a/src/lanes.cpp +++ b/src/lanes.cpp | |||
@@ -79,6 +79,7 @@ THE SOFTWARE. | |||
79 | =============================================================================== | 79 | =============================================================================== |
80 | */ | 80 | */ |
81 | 81 | ||
82 | #include "_pch.h" | ||
82 | #include "lanes.h" | 83 | #include "lanes.h" |
83 | 84 | ||
84 | #include "deep.h" | 85 | #include "deep.h" |
@@ -100,8 +101,6 @@ THE SOFTWARE. | |||
100 | #include <sys/types.h> | 101 | #include <sys/types.h> |
101 | #endif | 102 | #endif |
102 | 103 | ||
103 | #include <atomic> | ||
104 | |||
105 | // ################################################################################################# | 104 | // ################################################################################################# |
106 | // ########################################### Threads ############################################# | 105 | // ########################################### Threads ############################################# |
107 | // ################################################################################################# | 106 | // ################################################################################################# |
diff --git a/src/lanes.h b/src/lanes.h index 6fea869..e697406 100644 --- a/src/lanes.h +++ b/src/lanes.h | |||
@@ -11,8 +11,6 @@ extern "C" | |||
11 | 11 | ||
12 | #include "lanesconf.h" | 12 | #include "lanesconf.h" |
13 | 13 | ||
14 | #include <type_traits> | ||
15 | |||
16 | #define LANES_VERSION_MAJOR 4 | 14 | #define LANES_VERSION_MAJOR 4 |
17 | #define LANES_VERSION_MINOR 0 | 15 | #define LANES_VERSION_MINOR 0 |
18 | #define LANES_VERSION_PATCH 0 | 16 | #define LANES_VERSION_PATCH 0 |
diff --git a/src/linda.cpp b/src/linda.cpp index a7d7ee9..031eea0 100644 --- a/src/linda.cpp +++ b/src/linda.cpp | |||
@@ -30,15 +30,13 @@ THE SOFTWARE. | |||
30 | =============================================================================== | 30 | =============================================================================== |
31 | */ | 31 | */ |
32 | 32 | ||
33 | #include "_pch.h" | ||
33 | #include "linda.h" | 34 | #include "linda.h" |
34 | 35 | ||
35 | #include "lane.h" | 36 | #include "lane.h" |
36 | #include "lindafactory.h" | 37 | #include "lindafactory.h" |
37 | #include "tools.h" | 38 | #include "tools.h" |
38 | 39 | ||
39 | #include <functional> | ||
40 | #include <ranges> | ||
41 | |||
42 | // ################################################################################################# | 40 | // ################################################################################################# |
43 | 41 | ||
44 | static void check_key_types(lua_State* const L_, int const start_, int const end_) | 42 | static void check_key_types(lua_State* const L_, int const start_, int const end_) |
diff --git a/src/linda.h b/src/linda.h index 809ade5..3098161 100644 --- a/src/linda.h +++ b/src/linda.h | |||
@@ -4,11 +4,6 @@ | |||
4 | #include "deep.h" | 4 | #include "deep.h" |
5 | #include "universe.h" | 5 | #include "universe.h" |
6 | 6 | ||
7 | #include <array> | ||
8 | #include <condition_variable> | ||
9 | #include <string_view> | ||
10 | #include <variant> | ||
11 | |||
12 | struct Keeper; | 7 | struct Keeper; |
13 | 8 | ||
14 | // ################################################################################################# | 9 | // ################################################################################################# |
diff --git a/src/lindafactory.cpp b/src/lindafactory.cpp index 9a75b4f..68cb471 100644 --- a/src/lindafactory.cpp +++ b/src/lindafactory.cpp | |||
@@ -30,6 +30,7 @@ THE SOFTWARE. | |||
30 | =============================================================================== | 30 | =============================================================================== |
31 | */ | 31 | */ |
32 | 32 | ||
33 | #include "_pch.h" | ||
33 | #include "lindafactory.h" | 34 | #include "lindafactory.h" |
34 | 35 | ||
35 | #include "linda.h" | 36 | #include "linda.h" |
diff --git a/src/luaerrors.h b/src/luaerrors.h index 9399427..ff72582 100644 --- a/src/luaerrors.h +++ b/src/luaerrors.h | |||
@@ -11,10 +11,6 @@ extern "C" | |||
11 | } | 11 | } |
12 | #endif // __cplusplus | 12 | #endif // __cplusplus |
13 | 13 | ||
14 | #include <cassert> | ||
15 | #include <string_view> | ||
16 | #include <tuple> | ||
17 | |||
18 | // ################################################################################################# | 14 | // ################################################################################################# |
19 | 15 | ||
20 | // use this instead of Lua's lua_error | 16 | // use this instead of Lua's lua_error |
diff --git a/src/macros_and_utils.h b/src/macros_and_utils.h index d540cdb..338e389 100644 --- a/src/macros_and_utils.h +++ b/src/macros_and_utils.h | |||
@@ -14,9 +14,6 @@ extern "C" | |||
14 | #include "debug.h" | 14 | #include "debug.h" |
15 | #include "luaerrors.h" | 15 | #include "luaerrors.h" |
16 | 16 | ||
17 | #include <chrono> | ||
18 | #include <type_traits> | ||
19 | |||
20 | using namespace std::chrono_literals; | 17 | using namespace std::chrono_literals; |
21 | 18 | ||
22 | // ################################################################################################# | 19 | // ################################################################################################# |
diff --git a/src/nameof.cpp b/src/nameof.cpp index 8611239..8e79fda 100644 --- a/src/nameof.cpp +++ b/src/nameof.cpp | |||
@@ -24,6 +24,7 @@ THE SOFTWARE. | |||
24 | =============================================================================== | 24 | =============================================================================== |
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "_pch.h" | ||
27 | #include "nameof.h" | 28 | #include "nameof.h" |
28 | 29 | ||
29 | #include "tools.h" | 30 | #include "tools.h" |
diff --git a/src/state.cpp b/src/state.cpp index af071e8..47e31c3 100644 --- a/src/state.cpp +++ b/src/state.cpp | |||
@@ -31,6 +31,7 @@ THE SOFTWARE. | |||
31 | =============================================================================== | 31 | =============================================================================== |
32 | */ | 32 | */ |
33 | 33 | ||
34 | #include "_pch.h" | ||
34 | #include "state.h" | 35 | #include "state.h" |
35 | 36 | ||
36 | #include "intercopycontext.h" | 37 | #include "intercopycontext.h" |
@@ -39,8 +40,6 @@ THE SOFTWARE. | |||
39 | #include "tools.h" | 40 | #include "tools.h" |
40 | #include "universe.h" | 41 | #include "universe.h" |
41 | 42 | ||
42 | #include <source_location> | ||
43 | |||
44 | // ################################################################################################# | 43 | // ################################################################################################# |
45 | 44 | ||
46 | static constexpr char const* kOnStateCreate{ "on_state_create" }; // update lanes.lua if the name changes! | 45 | static constexpr char const* kOnStateCreate{ "on_state_create" }; // update lanes.lua if the name changes! |
diff --git a/src/threading.cpp b/src/threading.cpp index 43bd107..ebac0da 100644 --- a/src/threading.cpp +++ b/src/threading.cpp | |||
@@ -34,6 +34,8 @@ THE SOFTWARE. | |||
34 | 34 | ||
35 | =============================================================================== | 35 | =============================================================================== |
36 | */ | 36 | */ |
37 | #include "_pch.h" | ||
38 | |||
37 | #if defined(__linux__) | 39 | #if defined(__linux__) |
38 | 40 | ||
39 | #ifndef _GNU_SOURCE // definition by the makefile can cause a redefinition error | 41 | #ifndef _GNU_SOURCE // definition by the makefile can cause a redefinition error |
diff --git a/src/threading.h b/src/threading.h index 521618b..f0d1592 100644 --- a/src/threading.h +++ b/src/threading.h | |||
@@ -2,8 +2,6 @@ | |||
2 | 2 | ||
3 | #include "platform.h" | 3 | #include "platform.h" |
4 | 4 | ||
5 | #include <thread> | ||
6 | |||
7 | #define THREADAPI_WINDOWS 1 | 5 | #define THREADAPI_WINDOWS 1 |
8 | #define THREADAPI_PTHREAD 2 | 6 | #define THREADAPI_PTHREAD 2 |
9 | 7 | ||
diff --git a/src/tools.cpp b/src/tools.cpp index 302a0df..1afc2b8 100644 --- a/src/tools.cpp +++ b/src/tools.cpp | |||
@@ -31,6 +31,7 @@ THE SOFTWARE. | |||
31 | 31 | ||
32 | =============================================================================== | 32 | =============================================================================== |
33 | */ | 33 | */ |
34 | #include "_pch.h" | ||
34 | 35 | ||
35 | #include "tools.h" | 36 | #include "tools.h" |
36 | 37 | ||
diff --git a/src/tracker.cpp b/src/tracker.cpp index 618dc37..24e8d01 100644 --- a/src/tracker.cpp +++ b/src/tracker.cpp | |||
@@ -23,7 +23,9 @@ THE SOFTWARE. | |||
23 | 23 | ||
24 | =============================================================================== | 24 | =============================================================================== |
25 | */ | 25 | */ |
26 | #include "_pch.h" | ||
26 | #include "tracker.h" | 27 | #include "tracker.h" |
28 | |||
27 | #include "lane.h" | 29 | #include "lane.h" |
28 | 30 | ||
29 | // ################################################################################################# | 31 | // ################################################################################################# |
diff --git a/src/tracker.h b/src/tracker.h index 14926ec..dcf3c6e 100644 --- a/src/tracker.h +++ b/src/tracker.h | |||
@@ -1,7 +1,5 @@ | |||
1 | #pragma once | 1 | #pragma once |
2 | 2 | ||
3 | #include <mutex> | ||
4 | |||
5 | class Lane; | 3 | class Lane; |
6 | struct lua_State; | 4 | struct lua_State; |
7 | 5 | ||
diff --git a/src/uniquekey.h b/src/uniquekey.h index 5ccecc5..114d22e 100644 --- a/src/uniquekey.h +++ b/src/uniquekey.h | |||
@@ -3,8 +3,6 @@ | |||
3 | #include "compat.h" | 3 | #include "compat.h" |
4 | #include "macros_and_utils.h" | 4 | #include "macros_and_utils.h" |
5 | 5 | ||
6 | #include <bit> | ||
7 | |||
8 | // ################################################################################################# | 6 | // ################################################################################################# |
9 | 7 | ||
10 | class UniqueKey | 8 | class UniqueKey |
diff --git a/src/universe.cpp b/src/universe.cpp index b4d54b2..116c8e3 100644 --- a/src/universe.cpp +++ b/src/universe.cpp | |||
@@ -28,6 +28,7 @@ THE SOFTWARE. | |||
28 | =============================================================================== | 28 | =============================================================================== |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include "_pch.h" | ||
31 | #include "universe.h" | 32 | #include "universe.h" |
32 | 33 | ||
33 | #include "deep.h" | 34 | #include "deep.h" |
@@ -36,8 +37,6 @@ THE SOFTWARE. | |||
36 | #include "lane.h" | 37 | #include "lane.h" |
37 | #include "state.h" | 38 | #include "state.h" |
38 | 39 | ||
39 | #include <ranges> | ||
40 | |||
41 | extern LUAG_FUNC(linda); | 40 | extern LUAG_FUNC(linda); |
42 | 41 | ||
43 | // ################################################################################################# | 42 | // ################################################################################################# |
diff --git a/src/universe.h b/src/universe.h index 4239466..6f03ed3 100644 --- a/src/universe.h +++ b/src/universe.h | |||
@@ -14,9 +14,6 @@ extern "C" | |||
14 | #include "tracker.h" | 14 | #include "tracker.h" |
15 | #include "uniquekey.h" | 15 | #include "uniquekey.h" |
16 | 16 | ||
17 | #include <atomic> | ||
18 | #include <mutex> | ||
19 | |||
20 | // ################################################################################################# | 17 | // ################################################################################################# |
21 | 18 | ||
22 | // forwards | 19 | // forwards |