2579 |
05 Oct 11 |
peter |
// $Id$ |
2579 |
05 Oct 11 |
peter |
2 |
// |
4359 |
23 Aug 23 |
peter |
// Copyright (C) 2011 Peter Johansson |
2579 |
05 Oct 11 |
peter |
4 |
// |
2579 |
05 Oct 11 |
peter |
// This file is part of the yat library, http://dev.thep.lu.se/yat |
2579 |
05 Oct 11 |
peter |
6 |
// |
2579 |
05 Oct 11 |
peter |
// The yat library is free software; you can redistribute it and/or |
2579 |
05 Oct 11 |
peter |
// modify it under the terms of the GNU General Public License as |
2579 |
05 Oct 11 |
peter |
// published by the Free Software Foundation; either version 3 of the |
2579 |
05 Oct 11 |
peter |
// License, or (at your option) any later version. |
2579 |
05 Oct 11 |
peter |
11 |
// |
2579 |
05 Oct 11 |
peter |
// The yat library is distributed in the hope that it will be useful, |
2579 |
05 Oct 11 |
peter |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
2579 |
05 Oct 11 |
peter |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
2579 |
05 Oct 11 |
peter |
// General Public License for more details. |
2579 |
05 Oct 11 |
peter |
16 |
// |
2579 |
05 Oct 11 |
peter |
// You should have received a copy of the GNU General Public License |
2579 |
05 Oct 11 |
peter |
// along with yat. If not, see <http://www.gnu.org/licenses/>. |
2579 |
05 Oct 11 |
peter |
19 |
|
2579 |
05 Oct 11 |
peter |
20 |
|
2579 |
05 Oct 11 |
peter |
21 |
/** |
2703 |
12 Mar 12 |
peter |
\page yat_deprecate YAT_DEPRECATE |
2579 |
05 Oct 11 |
peter |
23 |
|
2579 |
05 Oct 11 |
peter |
Sometimes it may be necassary to remove a function or a class. In this |
2579 |
05 Oct 11 |
peter |
case the function or class will first be declared \c deprecated and |
2579 |
05 Oct 11 |
peter |
removed in a later version. If you try to use a <a |
2579 |
05 Oct 11 |
peter |
href=deprecated.html>deprecated function or class</a> and you use |
2579 |
05 Oct 11 |
peter |
GCC (or any other compiler that supports GCC like deprecations), the |
2579 |
05 Oct 11 |
peter |
compiler will warn you that you are using deprecated |
2579 |
05 Oct 11 |
peter |
functionality. You can disable these warnings by defining \c |
2579 |
05 Oct 11 |
peter |
YAT_DEPRECATE before including the header file in question |
2579 |
05 Oct 11 |
peter |
32 |
|
2579 |
05 Oct 11 |
peter |
\verbatim |
2579 |
05 Oct 11 |
peter |
#define YAT_DEPRECATE |
2579 |
05 Oct 11 |
peter |
#include <yat/utility/foo.h> |
2579 |
05 Oct 11 |
peter |
\endverbatim |
2579 |
05 Oct 11 |
peter |
37 |
|
2579 |
05 Oct 11 |
peter |
38 |
*/ |