UDK 3.2.7 C/C++ API Reference
sal/precppunit.hxx
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
00002 /*************************************************************************
00003 *
00004 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
00005 *
00006 * Copyright 2000, 2011 Oracle and/or its affiliates.
00007 *
00008 * OpenOffice.org - a multi-platform office productivity suite
00009 *
00010 * This file is part of OpenOffice.org.
00011 *
00012 * OpenOffice.org is free software: you can redistribute it and/or modify
00013 * it under the terms of the GNU Lesser General Public License version 3
00014 * only, as published by the Free Software Foundation.
00015 *
00016 * OpenOffice.org is distributed in the hope that it will be useful,
00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019 * GNU Lesser General Public License version 3 for more details
00020 * (a copy is included in the LICENSE file that accompanied this code).
00021 *
00022 * You should have received a copy of the GNU Lesser General Public License
00023 * version 3 along with OpenOffice.org.  If not, see
00024 * <http://www.openoffice.org/license.html>
00025 * for a copy of the LGPLv3 License.
00026 *
00027 ************************************************************************/
00028 
00029 #ifndef INCLUDED_SAL_PRECPPUNIT_HXX
00030 #define INCLUDED_SAL_PRECPPUNIT_HXX
00031 
00032 #include "sal/config.h"
00033 #include "sal/types.h"
00034 
00035 // Overwrite the way CppUnit test plug-ins export the test function, adapting it
00036 // to OOo's symbol visibility framework:
00037 #define CPPUNIT_PLUGIN_EXPORT extern "C" SAL_DLLPUBLIC_EXPORT
00038 
00039 //std::auto_ptr is deprecated in c++0x, but we're stuck with them in cppunit
00040 //So push and pop -Wdeprecated-declarations for gcc
00041 #define SAL_CPPUNIT_TEST_SUITE(X) \
00042 SAL_WNODEPRECATED_DECLARATIONS_PUSH \
00043 CPPUNIT_TEST_SUITE(X)
00044 
00045 #define SAL_CPPUNIT_TEST_SUITE_END() \
00046 CPPUNIT_TEST_SUITE_END() \
00047 ; \
00048 SAL_WNODEPRECATED_DECLARATIONS_POP \
00049 typedef int SalCppUnitDummyTypedefForSemiColonEnding__ \
00050 
00051 #endif
00052 
00053 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines