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


WindwosXP SP3 / Visual Studio 2005 VC++

CZX
Boost Software Linsence 1.0

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

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

2.DLOG }NgpăOo͂܂B

TvvO
#include "debugostream.hpp"

int _tmain() {
	int *p = NULL;

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

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

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

	return 0;
}

