8042aa39bf
fix possible ODR - multiple classes with same name in different .cpp files
14 lines
231 B
C++
14 lines
231 B
C++
#include <hex/helpers/logger.hpp>
|
|
|
|
extern "C" void forceLinkPlugin_@IMHEX_PLUGIN_NAME@();
|
|
|
|
namespace {
|
|
struct StaticLoad {
|
|
StaticLoad() {
|
|
forceLinkPlugin_@IMHEX_PLUGIN_NAME@();
|
|
}
|
|
};
|
|
}
|
|
|
|
static StaticLoad staticLoad;
|