xtd 0.2.0
ctrace.h
Go to the documentation of this file.
1 #pragma once
5 #include "tracestreambuf.h"
6 #include <iostream>
7 
9 namespace xtd {
10  #if defined(TRACE)
11  inline xtd::tracestreambuf ctracestreambuf;
13 
22  inline std::ostream ctrace(&ctracestreambuf);
23  #else
24  inline std::ostream ctrace(nullptr);
33  #endif
34 }
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Contains xtd::tracestreambuf class.
std::ostream ctrace(nullptr)
Provides an std::ostream for xtd::diagnostics::trace.
Provides an std::stringbuf for xtd::diagnostics::trace.
Definition: tracestreambuf.h:17