Skip to content

Commit

Permalink
Fix early-mod-checks to use decltype
Browse files Browse the repository at this point in the history
  • Loading branch information
sc2ad committed Oct 15, 2023
1 parent 0696a7a commit 827b819
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/utils/early-mod-checks.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
#include <type_traits>
#include "scotland2/shared/loader.hpp"

static_assert(std::is_same_v<modloader::SetupFunc, &setup>, "Must match the specified signature with setup!");
static_assert(std::is_same_v<modloader::LoadFunc, &load>, "Must match the specified signature with load!");
static_assert(std::is_same_v<modloader::SetupFunc, decltype(&setup)>, "Must match the specified signature with setup!");
static_assert(std::is_same_v<modloader::LoadFunc, decltype(&load)>, "Must match the specified signature with load!");

0 comments on commit 827b819

Please sign in to comment.