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
Branches
Tags
No related merge requests found
......@@ -343,4 +343,9 @@ class LLRegistrySingleton
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment