Moved dynctor registration into `rng.cpp` (seems to work in *this* TU too. Why not `rng/sm64.cpp` specifically???? very annoying.)

Fortune for rngxx's current commit: Small curse − 小凶
master
Avril 3 years ago
parent 3165ef13fd
commit 4da128e510
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -6,7 +6,7 @@
#include <rngxx/sm64.h>
#include <init.hpp>
// For some reason, dctors defined in any other file than crand.cpp do not work??!
// For some reason, dctors defined in some files do not work??!
RNGXX_APPLY_CTOR(rng, sm64, u64);
RNGXX_APPLY_CTOR(rng, crand, u64);

@ -75,3 +75,6 @@ N_INTS
#undef NEXTT
#undef NEXT
// ---
//TODO: Why does this have to be in a specific TU to work?
#include "../internal/dctor.h"

@ -70,5 +70,3 @@ namespace rng
}
//TODO: Why does this have to be in THIS TU?
#include "../internal/dctor.h"

@ -10,3 +10,5 @@
#include <rngxx/crand.h>
#include <rngxx/sm64.h>
#include "crand.h"
//TODO: Why does dynctors defined in this TU not function properly? Is it because there's nothing else in here?

Loading…
Cancel
Save