diff options
author | Andrew A. de Laix <alain@lindenlab.com> | 2010-12-21 10:33:58 -0800 |
---|---|---|
committer | Andrew A. de Laix <alain@lindenlab.com> | 2010-12-21 10:33:58 -0800 |
commit | e1b198a36b051051941c61d0a558766591ed4cfc (patch) | |
tree | 1809bf28779ab1f9b0cd05c97f94af3b7dfa5532 /indra/llxuixml/llregistry.h | |
parent | fdd5348f81d51363a1639de8b3cc4414fc0f4982 (diff) | |
parent | 9c97a200bebe310f91c9ab181fbe337eeab30aaa (diff) |
Merge from trunk
Diffstat (limited to 'indra/llxuixml/llregistry.h')
-rw-r--r-- | indra/llxuixml/llregistry.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/llxuixml/llregistry.h b/indra/llxuixml/llregistry.h index eee9933739..36ce6a97b7 100644 --- a/indra/llxuixml/llregistry.h +++ b/indra/llxuixml/llregistry.h @@ -343,4 +343,9 @@ private: 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, __LINE__)(KEY, VALUE); + #endif |