示例#1
0
	void AddFailure (const Failure & failure)
	{
		char writeBuffer[1024];
		sprintf( writeBuffer, "%d,%s,%s", failure.LineNumber(), failure.Filename(), failure.Condition() );
		DWORD dwWrite;
		if( WriteFile( m_WritePipe, writeBuffer, 1024, &dwWrite, NULL ) == false || dwWrite != 1024 )
			exit(-1);
	}
示例#2
0
    virtual void AddFailure (const Failure & failure)
    {
		lastCondition = failure.Condition();
    }