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 CODERS_GLSL_EXTESION_HPP_
#define CODERS_GLSL_EXTESION_HPP_
#pragma once
#include <filesystem>
#include <string>
@@ -35,5 +34,3 @@ public:
bool header = false
);
};
#endif // CODERS_GLSL_EXTESION_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef CODERS_BINARY_JSON_HPP_
#define CODERS_BINARY_JSON_HPP_
#pragma once
#include <memory>
#include <vector>
@@ -34,5 +33,3 @@ namespace json {
);
std::shared_ptr<dynamic::Map> from_binary(const ubyte* src, size_t size);
}
#endif // CODERS_BINARY_JSON_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef CODERS_BYTE_UTILS_HPP_
#define CODERS_BYTE_UTILS_HPP_
#pragma once
#include <string>
#include <vector>
@@ -79,5 +78,3 @@ public:
const ubyte* pointer() const;
void skip(size_t n);
};
#endif // CODERS_BYTE_UTILS_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef CODERS_COMMONS_HPP_
#define CODERS_COMMONS_HPP_
#pragma once
#include <stdexcept>
#include <string>
@@ -108,5 +107,3 @@ public:
BasicParser(std::string_view file, std::string_view source);
};
#endif // CODERS_COMMONS_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef CODERS_GZIP_HPP_
#define CODERS_GZIP_HPP_
#pragma once
#include <vector>
@@ -18,5 +17,3 @@ namespace gzip {
@param size length of GZIP data */
std::vector<ubyte> decompress(const ubyte* src, size_t size);
}
#endif // CODERS_GZIP_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef CODERS_IMAGEIO_HPP_
#define CODERS_IMAGEIO_HPP_
#pragma once
#include <memory>
#include <string>
@@ -15,5 +14,3 @@ namespace imageio {
std::unique_ptr<ImageData> read(const std::string& filename);
void write(const std::string& filename, const ImageData* image);
}
#endif // CODERS_IMAGEIO_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef CODERS_JSON_HPP_
#define CODERS_JSON_HPP_
#pragma once
#include <string>
@@ -19,5 +18,3 @@ namespace json {
const dynamic::Value& value, bool nice, const std::string& indent
);
}
#endif // CODERS_JSON_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef CODERS_OBJ_HPP_
#define CODERS_OBJ_HPP_
#pragma once
#include <memory>
#include <string>
@@ -15,5 +14,3 @@ namespace obj {
const std::string_view file, const std::string_view src
);
}
#endif // CODERS_OBJ_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef CODERS_OGG_HPP_
#define CODERS_OGG_HPP_
#pragma once
#include <filesystem>
@@ -16,5 +15,3 @@ namespace ogg {
const std::filesystem::path& file
);
}
#endif // CODERS_OGG_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef CODERS_PNG_HPP_
#define CODERS_PNG_HPP_
#pragma once
#include <memory>
#include <string>
@@ -12,5 +11,3 @@ namespace png {
void write_image(const std::string& filename, const ImageData* image);
std::unique_ptr<Texture> load_texture(const std::string& filename);
}
#endif // CODERS_PNG_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef CODERS_RLE_HPP_
#define CODERS_RLE_HPP_
#pragma once
#include "typedefs.hpp"
@@ -13,5 +12,3 @@ namespace extrle {
size_t encode(const ubyte* src, size_t length, ubyte* dst);
size_t decode(const ubyte* src, size_t length, ubyte* dst);
}
#endif // CODERS_RLE_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef CODERS_TOML_HPP_
#define CODERS_TOML_HPP_
#pragma once
#include <string>
@@ -16,5 +15,3 @@ namespace toml {
SettingsHandler& handler, std::string_view file, std::string_view source
);
}
#endif // CODERS_TOML_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef CODERS_WAV_HPP_
#define CODERS_WAV_HPP_
#pragma once
#include <filesystem>
@@ -16,5 +15,3 @@ namespace wav {
const std::filesystem::path& file
);
}
#endif // CODERS_WAV_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef CODERS_XML_HPP_
#define CODERS_XML_HPP_
#pragma once
#include <glm/glm.hpp>
#include <memory>
@@ -144,5 +143,3 @@ namespace xml {
const std::string& filename, const std::string& source
);
}
#endif // CODERS_XML_HPP_