summaryrefslogtreecommitdiff
path: root/indra/llxuixml
diff options
context:
space:
mode:
authorRichard Linden <none@none>2010-09-30 16:44:15 -0700
committerRichard Linden <none@none>2010-09-30 16:44:15 -0700
commit2fc07c4110c05b1deffc5a41a4f5f88bb4208827 (patch)
treeb0b5d0270d6e698d5061d6c65c2cc9990be4b927 /indra/llxuixml
parent5cfb82892fec41d121b7c55a9fcea46d2d395897 (diff)
parent7f003fa20df6ed60532271084696076ee61128de (diff)
merge
Diffstat (limited to 'indra/llxuixml')
-rw-r--r--indra/llxuixml/llregistry.h5
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