00001 /* trace.h 00002 */ 00003 #ifndef _TRACE_H 00004 #define _TRACE_H 00005 00006 // #define OSL_STATIC_INITIALIZER_TRACE 00007 00008 #ifdef OSL_STATIC_INITIALIZER_TRACE 00009 # include <iostream> 00010 #endif 00011 00012 namespace osl 00013 { 00014 namespace misc 00015 { 00016 struct StaticInitializeTracer 00017 { 00018 StaticInitializeTracer(const char *filename); 00019 }; 00020 } // namespace misc 00021 } // namespace osl 00022 00023 #define OSL_TRACE static osl::misc::StaticInitializeTracer tracer( __FILE__) 00024 00025 #endif /* _TRACE_H */ 00026 // ;;; Local Variables: 00027 // ;;; mode:c++ 00028 // ;;; c-basic-offset:2 00029 // ;;; End: