xml_parser_assert.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00014 #ifndef xml_parser_assert_h
00015 #define xml_parser_assert_h
00016 
00017 #include "zypp/base/Exception.h"
00018 
00019 #define xml_assert(ptr)                 \
00020   if (! ptr)                            \
00021     ZYPP_THROW(Exception("XML parser error: null pointer check failed"))
00022 
00023 
00024 #endif

Generated on Thu Jul 6 00:07:21 2006 for zypp by  doxygen 1.4.6