diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-24 16:22:29 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-07-27 08:18:16 +0200 |
commit | 38ecca9b30e0fc5f7cc6264857f983e40dd58195 (patch) | |
tree | 3ad61e6d5cddcf161d27cfe4c6ca85fcf1cab8f6 /idl/inc | |
parent | efac5fa06e2d00bd67c582d8a6b1f1fc69c9b9f5 (diff) |
inline a bunch of use-once macros
no point in having a macro unless it's actually going to reduce the
number of lines of code
Change-Id: Ic8760d6506cf272d7bd088f7b3b4dcbf288099fc
Diffstat (limited to 'idl/inc')
-rw-r--r-- | idl/inc/globals.hxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/idl/inc/globals.hxx b/idl/inc/globals.hxx index 014aac7cdbc9..3f49ece0855c 100644 --- a/idl/inc/globals.hxx +++ b/idl/inc/globals.hxx @@ -127,13 +127,13 @@ public: IdlDll & GetIdlApp(); -#define SV_GLOBAL_HASH_ACCESS( Name ) \ - if( !GetIdlApp().pGlobalNames ) \ - GetIdlApp().pGlobalNames = new SvGlobalHashNames(); \ - return GetIdlApp().pGlobalNames->MM_##Name; - -#define HASH_INLINE( Name ) \ -inline SvStringHashEntry * SvHash_##Name() { SV_GLOBAL_HASH_ACCESS( Name ) } +#define HASH_INLINE( Name ) \ +inline SvStringHashEntry * SvHash_##Name() \ +{ \ + if( !GetIdlApp().pGlobalNames ) \ + GetIdlApp().pGlobalNames = new SvGlobalHashNames(); \ + return GetIdlApp().pGlobalNames->MM_##Name; \ +} HASH_INLINE(Name) HASH_INLINE(module) |