Assertions

Mateusz Loskot mateusz at loskot.net
Sat Aug 12 23:04:24 EDT 2006


Hi,

What is the recommended way to set assertions in FDO code?
As I see, there are used two types of asserts in FDO code:
- assert from <cassert> header
- ASSERT macro

I suppose that ASSERT macro is re-definition of _ASSERT from Windows
and on non-Windows platforms it is defined as empty macro, file
Fdo/Unmanaged/Src/Fdo/Schema/SchemaAttributeDictionary.cpp
or
Providers/GenericRdbms/Src/Fdo/Schema/FdoRdbmsDescribeSchemaCommand.cpp

Any recommendations?

FDO_CPPUNIT_ASSERT and CPPUNIT_ASSERT are only for usage in Unit
Tests, right?

Best regards
-- 
Mateusz Loskot
http://mateusz.loskot.net




More information about the Fdo-internals mailing list