Hack to work arround dynctor not being registered when not defined in `crand.cpp" (no idea why, the symbol exists. looking into it.)
Fortune for rngxx's current commit: Small curse − 小凶master
parent
dfb3d74816
commit
3165ef13fd
@ -0,0 +1,14 @@
|
||||
#ifndef _RNGXX_DCTOR_HACK_H
|
||||
#define _RNGXX_DCTOR_HACK_H
|
||||
|
||||
#include <rngxx.hpp>
|
||||
#include <rngxx/crand.h>
|
||||
#include <rngxx/sm64.h>
|
||||
|
||||
#include <init.hpp>
|
||||
// For some reason, dctors defined in any other file than crand.cpp do not work??!
|
||||
|
||||
RNGXX_APPLY_CTOR(rng, sm64, u64);
|
||||
RNGXX_APPLY_CTOR(rng, crand, u64);
|
||||
|
||||
#endif /* _RNGXX_DCTOR_HACK_H */
|
@ -1,7 +1,12 @@
|
||||
#include <rngxx.hpp>
|
||||
#include <rngxx/sm64.h>
|
||||
#include <bit>
|
||||
|
||||
#include <climits>
|
||||
#include <cmath>
|
||||
|
||||
#include <rngxx.hpp>
|
||||
#include <mem.h>
|
||||
#include <init.hpp>
|
||||
|
||||
__attribute__((used))
|
||||
RNGXX_APPLY_CTOR(rng, sm64, u64);
|
||||
#include <rngxx/crand.h>
|
||||
#include <rngxx/sm64.h>
|
||||
#include "crand.h"
|
||||
|
Loading…
Reference in new issue