diff options
| author | Richard Linden <none@none> | 2010-09-30 16:13:56 -0700 | 
|---|---|---|
| committer | Richard Linden <none@none> | 2010-09-30 16:13:56 -0700 | 
| commit | 364ca4e55fd99ad0da15cd6fa176c2009f52b729 (patch) | |
| tree | 144881ebb71a74ca6834da6d364d07498520e0fc /indra | |
| parent | 48146096c0f6071bc0c775809713cb23fa3ccb17 (diff) | |
added macro for easier static registration
Diffstat (limited to 'indra')
| -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..80e654854a 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 | 
