XXX: Why is sm64"s dynctor not being called?

Fortune for rngxx's current commit: Great blessing − 大吉
master
Avril 3 years ago
parent d38f0ebd62
commit 8a0ecc0e32
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -12,7 +12,7 @@ namespace rng::init
const std::function<Random* (const void*)>& apply_raw(std::string_view name, std::function<Random* (const void*)> fn) noexcept
{
if(!INIT_MAP) INIT_MAP = new ctor_map();
auto& map = *INIT_MAP;
map[name] = std::move(fn);
return map[name];

@ -3,4 +3,5 @@
#include <init.hpp>
__attribute__((used))
RNGXX_APPLY_CTOR(rng, sm64, u64);

Loading…
Cancel
Save