- Timestamp:
- Mar 10, 2013, 3:08:58 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/testing/src/libraries/util/output/OutputDefinitions.h
r9540 r9542 47 47 context argument. 48 48 */ 49 #define REGISTER_OUTPUT_CONTEXT(name) \ 50 const OutputContextContainer& name() { static OutputContextContainer context = registerContext(#name); return context; } 49 #ifndef DISABLE_OUTPUT_CONTEXT_STATIC_CACHE 50 #define REGISTER_OUTPUT_CONTEXT(name) \ 51 const OutputContextContainer& name() { static OutputContextContainer context = registerContext(#name); return context; } 52 #else 53 #define REGISTER_OUTPUT_CONTEXT(name) \ 54 const OutputContextContainer& name() { return registerContext(#name); } 55 #endif 51 56 52 57 /** … … 60 65 individually by derivatives of orxonox::SubcontextOutputListener. 61 66 */ 62 #define REGISTER_OUTPUT_SUBCONTEXT(name, subname) \ 63 const OutputContextContainer& subname() { static const OutputContextContainer& context = registerContext(#name, #subname); return context; } 67 #ifndef DISABLE_OUTPUT_CONTEXT_STATIC_CACHE 68 #define REGISTER_OUTPUT_SUBCONTEXT(name, subname) \ 69 const OutputContextContainer& subname() { static const OutputContextContainer context = registerContext(#name, #subname); return context; } 70 #else 71 #define REGISTER_OUTPUT_SUBCONTEXT(name, subname) \ 72 const OutputContextContainer& subname() { return registerContext(#name, #subname); } 73 #endif 64 74 65 75 // tolua_begin
Note: See TracChangeset
for help on using the changeset viewer.