build: Fix MSVC builds

This commit is contained in:
WerWolv
2025-05-30 11:25:15 +02:00
parent d8f0120698
commit 78b3d3d001
9 changed files with 35 additions and 24 deletions

View File

@@ -1,7 +1,19 @@
#include <hex/test/tests.hpp>
namespace hex::test {
std::map<std::string, Test> Tests::s_tests;
static std::map<std::string, Test> s_tests;
int Tests::addTest(const std::string &name, Function func, bool shouldFail) noexcept {
s_tests.insert({
name, {func, shouldFail}
});
return 0;
}
std::map<std::string, Test> &Tests::get() noexcept {
return s_tests;
}
bool initPluginImpl(std::string name) {
if (name != "Built-in") {