Test.h

Go to the documentation of this file.
00001 
00002 //
00003 //  $Id: Test.h 416 2009-12-03 05:56:54Z weegreenblobbie $
00004 //
00005 //  Nsound is a C++ library and Python module for audio synthesis featuring
00006 //  dynamic digital filters. Nsound lets you easily shape waveforms and write
00007 //  to disk or plot them. Nsound aims to be as powerful as Csound but easy to
00008 //  use.
00009 //
00010 //  Copyright (c) 2006 Nick Hilton
00011 //
00012 //  weegreenblobbie_yahoo_com (replace '_' with '@' and '.')
00013 //
00015 
00017 //
00018 //  This program is free software; you can redistribute it and/or modify
00019 //  it under the terms of the GNU General Public License as published by
00020 //  the Free Software Foundation; either version 2 of the License, or
00021 //  (at your option) any later version.
00022 //
00023 //  This program is distributed in the hope that it will be useful,
00024 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00025 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00026 //  GNU Library General Public License for more details.
00027 //
00028 //  You should have received a copy of the GNU General Public License
00029 //  along with this program; if not, write to the Free Software
00030 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00031 //
00033 
00034 #ifndef _NSOUND_TEST_H_
00035 #define _NSOUND_TEST_H_
00036 
00037 #define TEST_HEADER2(line) \
00038     THIS_FILE << ":"; cout.width(4); cout << line \
00039     << ": "; cout.width(0); cout
00040 
00041 #define TEST_ERROR_HEADER2(line) \
00042     endl << THIS_FILE << ":"; cerr.width(4); cerr << line \
00043     << ": ***Error!  "; cerr.width(0); cout
00044 
00045 #define TEST_HEADER \
00046     THIS_FILE << ":"; cout.width(4); cout << __LINE__ \
00047     << ": "; cout.width(0); cout
00048 
00049 #define TEST_ERROR_HEADER \
00050     endl << THIS_FILE << ":"; cerr.width(4); cerr << __LINE__ \
00051     << ": ***Error!  "; cerr.width(0); cout
00052 
00053 
00054 #endif
Generated on Sun Apr 15 20:10:06 2012 for nsound by  doxygen 1.6.3