Added attr retain to dynctors. Dunno if this does anything, but it doesn"t complain and still works.

Fortune for rngxx's current commit: Middle blessing − 中吉
master
Avril 3 years ago
parent 4da128e510
commit 8eb88a65b4
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -27,7 +27,7 @@ namespace rng::init
} }
// To add to dynamic CTOR map // To add to dynamic CTOR map
#define RNGXX_APPLY_CTOR(ns, T, TSeed) __attribute__((used))\ #define RNGXX_APPLY_CTOR(ns, T, TSeed) __attribute__((used, retain))\
const static auto& RNGXX_DCTOR_NAME(T) = rng::init::apply<ns::T, TSeed>(#T, [](const TSeed* ptr) { return new ns::T(*ptr); }) const static auto& RNGXX_DCTOR_NAME(T) = rng::init::apply<ns::T, TSeed>(#T, [](const TSeed* ptr) { return new ns::T(*ptr); })
//const extern init::ctor_func& RNGXX_DCTOR_NAME(sm64); //const extern init::ctor_func& RNGXX_DCTOR_NAME(sm64);

Loading…
Cancel
Save