mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-18 16:09:19 +02:00
put every include before every import
A header first pulled in through an imported module's global module fragment leaves no include guard in the importing unit - macros do not cross a module boundary - so a later textual include parses it again and MSVC rejects the redefinition. Redoes the betterRenderer sweep with placement that stays out of #if blocks, which is where the previous one dropped <fstream> and broke nvrenderer_d3d12.cpp.
This commit is contained in:
@@ -8,15 +8,15 @@
|
||||
#include "nvrenderer/nvrenderer.h"
|
||||
#include "nvrendererbackend.h"
|
||||
#include "nvtexture.h"
|
||||
import eu07.simulation.simulationenvironment;
|
||||
#include "sky.h"
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include "sky.h"
|
||||
|
||||
import eu07.simulation.simulationenvironment;
|
||||
int MaEnvironment::GetCurrentSetIndex() {
|
||||
if (m_locked_set_index >= 0 && IsReady()) {
|
||||
m_current_set_index = std::exchange(m_locked_set_index, -1);
|
||||
|
||||
Reference in New Issue
Block a user