diff options
author | Richard Linden <none@none> | 2010-09-30 16:44:15 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2010-09-30 16:44:15 -0700 |
commit | 2fc07c4110c05b1deffc5a41a4f5f88bb4208827 (patch) | |
tree | b0b5d0270d6e698d5061d6c65c2cc9990be4b927 /indra/llxuixml | |
parent | 5cfb82892fec41d121b7c55a9fcea46d2d395897 (diff) | |
parent | 7f003fa20df6ed60532271084696076ee61128de (diff) |
merge
Diffstat (limited to 'indra/llxuixml')
-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..546cf38eb5 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, __COUNTER__)(KEY, VALUE); + #endif |