xtd - Reference Guide  0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
ctrace.h
Go to the documentation of this file.
1 #pragma once
5 #include <iostream>
6 #include "tracestreambuf.h"
7 
9 inline xtd::tracestreambuf __ctracestreambuf__;
11 
13 namespace xtd {
14 #if defined(TRACE)
21  inline std::ostream ctrace(&__ctracestreambuf__);
22 #else
29  inline std::ostream ctrace(nullptr);
30 #endif
31 }
Provides an std::stringbuf for xtd::diagnostics::trace.
Definition: tracestreambuf.h:17
std::ostream ctrace(nullptr)
Provides an std::ostream for xtd::diagnostics::trace.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::tracestreambuf class.