yak1ex / odstream Goto Github PK
View Code? Open in Web Editor NEWC++ stream using OutputDebugString Win32 API
C++ stream using OutputDebugString Win32 API
It may be possible to eliminate cpp source by like
struct debug {
static std::ostream& ods() { static std::ostream ods_(/*...*/); return ods_; }
};
pseudo_null_stream
throw()
final
Currently, std::endl
is used for actual call of OutputDebugString().
It requires #include <iostream>
It is enough to call ods.flush()
if a pseudo null stream has a flush()
method.
Additionally, it is probably better to flush automatically for ODS
macro. In this case, it is better to provide ODS_NOFLUSH
.
This library does not use specializations so that it has no benefit but this is a preferable solution for C++11 and after.
namespace yak {
namespace debug_yes {
void func(void) { }
}
namespace debug_no {
void func(void) { }
}
#if __cplusplus >= 201103L // use inline namespace
namespace debug {
inline namespace yes { using namespace ::yak::debug_yes; }
namespace no { using namespace ::yak::debug_no; }
}
#else // use namespace alias
namespace debug = debug_yes;
#endif
}
It is necessary to use WaitForDebugEvent() API
source: ODS
document: DEBUG_LOG
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.