mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-01 21:17:44 -05:00
Fixed plugin loading and closing issues mainly on Windows
This fixes #87
This commit is contained in:
@@ -11,7 +11,9 @@
|
||||
#include <hex/helpers/shared_data.hpp>
|
||||
#include <hex/data_processor/node.hpp>
|
||||
|
||||
#define IMHEX_PLUGIN_SETUP namespace hex::plugin::internal { \
|
||||
void initializePlugin(); \
|
||||
} \
|
||||
void hex::plugin::internal::initializePlugin()
|
||||
#define IMHEX_PLUGIN_SETUP IMHEX_PLUGIN_SETUP_IMPL(IMHEX_PLUGIN_NAME)
|
||||
|
||||
#define IMHEX_PLUGIN_SETUP_IMPL(name) namespace hex::plugin::name::internal { \
|
||||
[[gnu::visibility("default")]] void initializePlugin(); \
|
||||
} \
|
||||
void hex::plugin::name::internal::initializePlugin()
|
||||
|
||||
Reference in New Issue
Block a user