mirror of
https://github.com/ApfelTeeSaft/Starfall.git
synced 2026-08-26 19:33:39 +00:00
(2/3) fix build
This commit is contained in:
@@ -10,6 +10,37 @@
|
||||
#include <string_view>
|
||||
#include <string>
|
||||
|
||||
template <size_t _Sz>
|
||||
struct String {
|
||||
char _St[_Sz];
|
||||
|
||||
consteval String(const char(&_Ps)[_Sz])
|
||||
{
|
||||
std::copy_n(_Ps, _Sz, _St);
|
||||
}
|
||||
|
||||
operator const char* () {
|
||||
return _St;
|
||||
}
|
||||
|
||||
constexpr std::string_view StringView() const {
|
||||
return _St;
|
||||
}
|
||||
};
|
||||
|
||||
template <typename _Ft>
|
||||
struct Func {
|
||||
_Ft _Fn;
|
||||
|
||||
consteval Func(_Ft _Pf)
|
||||
{
|
||||
_Fn = _Pf;
|
||||
}
|
||||
|
||||
constexpr _Ft Get() const {
|
||||
return _Fn;
|
||||
}
|
||||
};
|
||||
namespace Plooshfinder {
|
||||
#include "../plooshfinder/include/plooshfinder_sig.h"
|
||||
#include "../plooshfinder/include/plooshfinder.h"
|
||||
|
||||
Reference in New Issue
Block a user