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 UTIL_BUFFER_POOL_HPP_
#define UTIL_BUFFER_POOL_HPP_
#pragma once
#include <memory>
#include <mutex>
@@ -38,5 +37,3 @@ namespace util {
}
};
}
#endif // UTIL_BUFFER_POOL_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef UTIL_CLOCK_HPP_
#define UTIL_CLOCK_HPP_
#pragma once
namespace util {
class Clock {
@@ -20,5 +19,3 @@ namespace util {
int getTickId() const;
};
}
#endif // UTIL_CLOCK_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef UTIL_OBJECTS_KEEPER_HPP_
#define UTIL_OBJECTS_KEEPER_HPP_
#pragma once
#include <memory>
#include <vector>
@@ -17,5 +16,3 @@ namespace util {
}
};
}
#endif // UTIL_OBJECTS_KEEPER_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef UTIL_RUNNABLES_LIST_HPP_
#define UTIL_RUNNABLES_LIST_HPP_
#pragma once
#include <memory>
#include <unordered_map>
@@ -29,5 +28,3 @@ namespace util {
}
};
}
#endif // UTIL_RUNNABLES_LIST_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef UTIL_THREAD_POOL_HPP_
#define UTIL_THREAD_POOL_HPP_
#pragma once
#include <atomic>
#include <chrono>
@@ -255,5 +254,3 @@ namespace util {
};
} // namespace util
#endif // UTIL_THREAD_POOL_HPP_
+1 -4
View File
@@ -1,9 +1,6 @@
#ifndef UTIL_COMMAND_LINE_HPP_
#define UTIL_COMMAND_LINE_HPP_
#pragma once
class EnginePaths;
/// @return false if engine start can
bool parse_cmdline(int argc, char** argv, EnginePaths& paths);
#endif // UTIL_COMMAND_LINE_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef UTIL_DATA_IO_HPP_
#define UTIL_DATA_IO_HPP_
#pragma once
#include "typedefs.hpp"
@@ -47,5 +46,3 @@ namespace dataio {
dest[offset + 7] = (char)(value >> 0 & 255);
}
}
#endif // UTIL_DATA_IO_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef UTIL_LISTUTIL_HPP_
#define UTIL_LISTUTIL_HPP_
#pragma once
#include <algorithm>
#include <queue>
@@ -14,5 +13,3 @@ namespace util {
std::string to_string(const std::vector<std::string>& vec);
}
#endif // UTIL_LISTUTIL_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef UTIL_PLATFORM_HPP_
#define UTIL_PLATFORM_HPP_
#pragma once
#include <string>
@@ -8,5 +7,3 @@ namespace platform {
// @return environment locale in ISO format ll_CC
std::string detect_locale();
}
#endif // UTIL_PLATFORM_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef UTIL_STRINGUTIL_HPP_
#define UTIL_STRINGUTIL_HPP_
#pragma once
#include <string>
#include <vector>
@@ -62,5 +61,3 @@ namespace util {
std::pair<std::string, std::string> split_at(std::string_view view, char c);
}
#endif // UTIL_STRINGUTIL_HPP_
+1 -4
View File
@@ -1,5 +1,4 @@
#ifndef UTIL_TIMEUTIL_HPP_
#define UTIL_TIMEUTIL_HPP_
#pragma once
#include <chrono>
@@ -34,5 +33,3 @@ namespace timeutil {
void from_value(float value, int& hour, int& minute, int& second);
}
#endif // UTIL_TIMEUTIL_HPP_