Kaydet (Commit) 10f2bc5d authored tarafından Jens-Heiner Rechtien's avatar Jens-Heiner Rechtien

INTEGRATION: CWS warnings01 (1.1.2); FILE ADDED

2005/11/21 15:51:41 fs 1.1.2.2: #i57457# OSL_VERIFY_EQUALS
2005/11/07 14:49:17 fs 1.1.2.1: #i57457# warning-free code
üst 81e3188e
/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: diagnose_ex.h,v $
*
* $Revision: 1.2 $
*
* last change: $Author: hr $ $Date: 2006-06-20 01:58:35 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
*
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2005 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
************************************************************************/
#ifndef CONNECTIVITY_DIAGNOSE_EX_H
#define CONNECTIVITY_DIAGNOSE_EX_H
#if OSL_DEBUG_LEVEL > 0
#define OSL_VERIFY_RES( expression, fail_message ) \
OSL_ENSURE( expression, fail_message )
#define OSL_VERIFY_EQUALS( expression, compare, fail_message ) \
OSL_ENSURE( expression == compare, fail_message )
#else
#define OSL_VERIFY_RES( expression, fail_message ) \
(void)(expression)
#define OSL_VERIFY_EQUALS( expression, compare, fail_message ) \
(void)(expression)
#endif
#define OSL_UNUSED( expression ) \
(void)(expression)
#endif // CONNECTIVITY_DIAGNOSE_EX_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment