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