Changeset 10317 for code/trunk/src/libraries
- Timestamp:
- Mar 15, 2015, 5:22:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/util/output/OutputDefinitions.h
r9550 r10317 49 49 #ifndef DISABLE_OUTPUT_CONTEXT_STATIC_CACHE 50 50 #define REGISTER_OUTPUT_CONTEXT(name) \ 51 const OutputContextContainer& name() { static OutputContextContainer context = registerContext(#name); return context; }51 inline const OutputContextContainer& name() { static OutputContextContainer context = registerContext(#name); return context; } 52 52 #else 53 53 #define REGISTER_OUTPUT_CONTEXT(name) \ 54 const OutputContextContainer& name() { return registerContext(#name); }54 inline const OutputContextContainer& name() { return registerContext(#name); } 55 55 #endif 56 56 … … 67 67 #ifndef DISABLE_OUTPUT_CONTEXT_STATIC_CACHE 68 68 #define REGISTER_OUTPUT_SUBCONTEXT(name, subname) \ 69 const OutputContextContainer& subname() { static const OutputContextContainer context = registerContext(#name, #subname); return context; }69 inline const OutputContextContainer& subname() { static const OutputContextContainer context = registerContext(#name, #subname); return context; } 70 70 #else 71 71 #define REGISTER_OUTPUT_SUBCONTEXT(name, subname) \ 72 const OutputContextContainer& subname() { return registerContext(#name, #subname); }72 inline const OutputContextContainer& subname() { return registerContext(#name, #subname); } 73 73 #endif 74 74
Note: See TracChangeset
for help on using the changeset viewer.