mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-19 09:39: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:
@@ -4,14 +4,14 @@
|
||||
|
||||
#include "environment.h"
|
||||
#include "nvrendererbackend.h"
|
||||
import eu07.simulation.simulationenvironment;
|
||||
import eu07.simulation.simulationtime;
|
||||
#include "imgui/imgui.h"
|
||||
import eu07.glm;
|
||||
#include <array>
|
||||
#include <limits>
|
||||
#include <memory>
|
||||
#include "imgui/imgui.h"
|
||||
|
||||
import eu07.simulation.simulationenvironment;
|
||||
import eu07.simulation.simulationtime;
|
||||
import eu07.glm;
|
||||
namespace {
|
||||
static const float PI = 3.14159265358979323846f;
|
||||
static const float INV_PI = 0.31830988618379067154f;
|
||||
|
||||
Reference in New Issue
Block a user