diff options
author | Monroe Linden <monroe@lindenlab.com> | 2010-12-02 14:33:42 -0800 |
---|---|---|
committer | Monroe Linden <monroe@lindenlab.com> | 2010-12-02 14:33:42 -0800 |
commit | 1e050c2ed87ae2093623fa4c66a69aeee1fb980c (patch) | |
tree | ff9bf66608dc3b9c4459daa68ec99a3065182aac /indra/llxuixml/llregistry.h | |
parent | 36954908632d6f5366f6517023676c1bcd71aa17 (diff) | |
parent | d276950c8d4d53f9d5d6497d5a4a4582c499938a (diff) |
merge
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 |