Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

AxPipeAssert.h File Reference

Fatal assertions and formatted message box etc. More...

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  AxPipe
namespace  AxPipe::Assert

Defines

#define ASSCHK(fOk, sz)   AxPipe::Assert::AssFunc(fOk, sz, _T(__FILE__), __LINE__)
 Assert any custom condition.

#define ASSAPI(fOk)   if ((fOk) != TRUE) AxPipe::Assert::AssFunc(false, AxPipe::Assert::LastErrorMsg(), _T(__FILE__), __LINE__)
 Assert the result from a Win32 API operation.

#define ASSPTR(p)   AxPipe::Assert::AssFunc((p) != NULL, _T("NULL pointer"), _T(__FILE__), __LINE__)
 Assert that a pointer is non-NULL.


Detailed Description

Fatal assertions and formatted message box etc.

@(#)

Id
AxPipeAssert.h,v 1.3 2004/02/02 12:10:47 svante Exp

AxPipe - Binary Stream Framework

Copyright (C) 2001 Svante Seleborg/Axon Data, All rights reserved.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

The author may be reached at mailto:axcrypt@axondata.se and http://axcrypt.sourceforge.net ---- AxPipeAssert.h

E-mail YYYY-MM-DD Reason axcrypt@axondata.se 2003-11-22 Initial

Definition in file AxPipeAssert.h.


Define Documentation

#define ASSAPI fOk   )     if ((fOk) != TRUE) AxPipe::Assert::AssFunc(false, AxPipe::Assert::LastErrorMsg(), _T(__FILE__), __LINE__)
 

Assert the result from a Win32 API operation.

It should be called immediately after using a Win32 API function that may fail, and that sets the GetLastError() error code. The message shown will use the message defintion from Windows.

Parameters:
fOk An expression that must validate to TRUE

Definition at line 49 of file AxPipeAssert.h.

Referenced by AxPipe::CThreadSync::CThreadSync(), AxPipe::MapUserView(), AxPipe::Stock::CPipeSHA1::OutClose(), AxPipe::Stock::CPipeHMAC_SHA1< iBits >::OutClose(), AxPipe::Stock::CPipeHMAC_SHA1< iBits >::OutOpen(), AxPipe::CSync::Signal(), AxPipe::CSync::Wait(), and AxPipe::CThreadSync::~CThreadSync().

#define ASSCHK fOk,
sz   )     AxPipe::Assert::AssFunc(fOk, sz, _T(__FILE__), __LINE__)
 

Assert any custom condition.

Parameters:
fOk An expression that must validate to 'true'
sz A string with a message about the assertion.

Definition at line 38 of file AxPipeAssert.h.

Referenced by AxPipe::CFilter::CoFilter(), AxPipe::CPipe::DestructSink(), AxPipe::CSource::Drain(), AxPipe::CJoin::GetSink(), AxPipe::CCoContext::Go(), AxPipe::Stock::CPipeInflate::OutOpen(), AxPipe::CCoContext::Stop(), and AxPipe::CJoin::StreamSeg().

#define ASSPTR  )     AxPipe::Assert::AssFunc((p) != NULL, _T("NULL pointer"), _T(__FILE__), __LINE__)
 

Assert that a pointer is non-NULL.

Parameters:
p A pointer expression that must not be NULL

Definition at line 55 of file AxPipeAssert.h.

Referenced by AxPipe::Stock::CPipeInflate::Out().


Generated on Mon Feb 2 13:19:19 2004 for AxPipe by doxygen 1.3.5