Tv
debugostream ́AfobOOo̓CułB
̃CúAWin32APIOutputDebugString  std::ostreamŃbvNXƁA
fobOrhɂ̂݃Oo͂}N܂݂܂


WindwosXP SP3 / Visual Studio 2005 VC++

CZX
Public Domain

CXg[
t include/debugostream tH_A
vWFNg̃tH_INCLUDẼpX̒ʂtH_ɃRs[܂B

gp@
1. \[Xt@CɉLLq܂B
#include <debugostream/debugostream.hpp>

2.DLOG() }NgpăOo͂܂B

TvvO
#include <debugostream.hpp>

int _tmain() {
	int *p = NULL;

	// ascii or multibyte
	DLOGA() << "HELLO WORLD" << std::endl;
	DLOGA_IF(p == NULL) << "p is null" << std::endl;

	// unicode
	DLOGW() << L"HELLO WORLD" << std::endl;
	DLOGW_IF(p == NULL) << L"p is null" << std::endl;

	// generic
	DLOG() << _T("HELLO WORLD") << std::endl;
	DLOG_IF(p == NULL) << _T("p is null") << std::endl;

	return 0;
}

