Skip to content
Snippets Groups Projects
Commit 364ca4e5 authored by Richard Linden's avatar Richard Linden
Browse files

added macro for easier static registration

parent 48146096
No related branches found
No related tags found
No related merge requests found
...@@ -343,4 +343,9 @@ class LLRegistrySingleton ...@@ -343,4 +343,9 @@ class LLRegistrySingleton
ScopedRegistrar* mStaticScope; ScopedRegistrar* mStaticScope;
}; };
// helper macro for doing static registration
#define GLUED_TOKEN(x, y) x ## y
#define GLUE_TOKENS(x, y) GLUED_TOKEN(x, y)
#define LLREGISTER_STATIC(REGISTRY, KEY, VALUE) static REGISTRY::StaticRegistrar GLUE_TOKENS(reg, __COUNTER__)(KEY, VALUE);
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment