replace include guards with pragma once

This commit is contained in:
MihailRis
2024-08-10 01:57:59 +03:00
parent f43cc93cd2
commit de5c75d782
164 changed files with 166 additions and 656 deletions
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef LIGHTING_LIGHTSOLVER_HPP_
#define LIGHTING_LIGHTSOLVER_HPP_
#pragma once
#include <queue>
@@ -27,5 +26,3 @@ public:
void remove(int x, int y, int z);
void solve();
};
#endif // LIGHTING_LIGHTSOLVER_HPP_
+1 -5
View File
@@ -1,6 +1,4 @@
#ifndef LIGHTING_LIGHTING_HPP_
#define LIGHTING_LIGHTING_HPP_
#pragma once
#include "typedefs.hpp"
class Content;
@@ -27,5 +25,3 @@ public:
static void prebuildSkyLight(Chunk* chunk, const ContentIndices* indices);
};
#endif /* LIGHTING_LIGHTING_HPP_ */
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef LIGHTING_LIGHTMAP_HPP_
#define LIGHTING_LIGHTMAP_HPP_
#pragma once
#include "constants.hpp"
#include "typedefs.hpp"
@@ -86,5 +85,3 @@ public:
std::unique_ptr<ubyte[]> encode() const;
static std::unique_ptr<light_t[]> decode(const ubyte* buffer);
};
#endif // LIGHTING_LIGHTMAP_HPP_