summaryrefslogtreecommitdiff
path: root/indra/media_plugins/base/media_plugin_base.h
diff options
context:
space:
mode:
authorMaki <maki@hotmilk.space>2024-04-20 18:34:09 -0400
committerMaki <maki@hotmilk.space>2024-04-20 18:34:09 -0400
commitd09ec5e87bfd892306ccdba56944583bd9213aaf (patch)
tree82d9b57d7c3ea4ee7807ba8e31d174c4c6a02d9b /indra/media_plugins/base/media_plugin_base.h
parent90cf3ee30bd082d1352a3182f598bc0d3860ef8b (diff)
Rework macro magic for symbol grabber
Diffstat (limited to 'indra/media_plugins/base/media_plugin_base.h')
-rw-r--r--indra/media_plugins/base/media_plugin_base.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/indra/media_plugins/base/media_plugin_base.h b/indra/media_plugins/base/media_plugin_base.h
index 571dd3bd1b..10c3b67235 100644
--- a/indra/media_plugins/base/media_plugin_base.h
+++ b/indra/media_plugins/base/media_plugin_base.h
@@ -60,11 +60,9 @@ extern SymbolGrabber gSymbolGrabber;
// extern SymbolGrabber gSymbolGrabber;
-#define LL_SYMBOL_GRABBER gSymbolGrabber
-
-#define LL_GRAB_SYM(REQUIRED, SYMBOL_NAME, RETURN, ...) \
+#define LL_GRAB_SYM(SYMBOL_GRABBER, REQUIRED, SYMBOL_NAME, RETURN, ...) \
RETURN (*ll##SYMBOL_NAME)(__VA_ARGS__) = nullptr; \
- size_t gRegistered##SYMBOL_NAME = LL_SYMBOL_GRABBER.registerSymbol( \
+ size_t gRegistered##SYMBOL_NAME = SYMBOL_GRABBER.registerSymbol( \
{ REQUIRED, #SYMBOL_NAME , (apr_dso_handle_sym_t*)&ll##SYMBOL_NAME} \
);