1
0
mirror of synced 2025-01-29 19:17:28 +01:00

fix: ODR issues in plugin bundle generation (#1486)

fix possible ODR - multiple classes with same name in different .cpp
files
This commit is contained in:
Anton Samokhvalov 2024-01-07 00:13:35 +03:00 committed by GitHub
parent 409b3ccd6c
commit 8042aa39bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,10 +2,12 @@
extern "C" void forceLinkPlugin_@IMHEX_PLUGIN_NAME@();
namespace {
struct StaticLoad {
StaticLoad() {
forceLinkPlugin_@IMHEX_PLUGIN_NAME@();
}
};
}
static StaticLoad staticLoad;
static StaticLoad staticLoad;