cc.cc

Go to the documentation of this file.
00001 /* MLPACK 0.2
00002  *
00003  * Copyright (c) 2008, 2009 Alexander Gray,
00004  *                          Garry Boyer,
00005  *                          Ryan Riegel,
00006  *                          Nikolaos Vasiloglou,
00007  *                          Dongryeol Lee,
00008  *                          Chip Mappus, 
00009  *                          Nishant Mehta,
00010  *                          Hua Ouyang,
00011  *                          Parikshit Ram,
00012  *                          Long Tran,
00013  *                          Wee Chin Wong
00014  *
00015  * Copyright (c) 2008, 2009 Georgia Institute of Technology
00016  *
00017  * This program is free software; you can redistribute it and/or
00018  * modify it under the terms of the GNU General Public License as
00019  * published by the Free Software Foundation; either version 2 of the
00020  * License, or (at your option) any later version.
00021  *
00022  * This program is distributed in the hope that it will be useful, but
00023  * WITHOUT ANY WARRANTY; without even the implied warranty of
00024  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00025  * General Public License for more details.
00026  *
00027  * You should have received a copy of the GNU General Public License
00028  * along with this program; if not, write to the Free Software
00029  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00030  * 02110-1301, USA.
00031  */
00038 #include "fastlib/base/cc.h"
00039 #include "fastlib/base/debug.h"
00040 //#include "cc.h"
00041 //#include "debug.h"
00042 
00043 const double DBL_NAN = std::numeric_limits<double>::quiet_NaN();
00044 const float FLT_NAN = std::numeric_limits<float>::quiet_NaN();
00045 const double DBL_INF = std::numeric_limits<double>::infinity();
00046 const float FLT_INF = std::numeric_limits<float>::infinity();
00047 
00048 #if defined(DEBUG) || defined(PROFILE)
00049 
00050 namespace cc__private {
00052   class InformDebug {
00053    public:
00054     InformDebug() {
00055       PROFILE_ONLY(NOTIFY_STAR("Profiling information available with:\n"));
00056       PROFILE_ONLY(NOTIFY_STAR("  gprof $THIS > prof.out && less prof.out\n"));
00057       DEBUG_ONLY(NOTIFY_STAR(
00058           ANSI_BLACK"Program compiled with debug checks."ANSI_CLEAR"\n"));
00059     }
00060     ~InformDebug() {
00061       PROFILE_ONLY(NOTIFY_STAR("Profiling information available with:\n"));
00062       PROFILE_ONLY(NOTIFY_STAR("  gprof $THIS > prof.out && less prof.out\n"));
00063       DEBUG_ONLY(NOTIFY_STAR(
00064           ANSI_BLACK"Program compiled with debug checks."ANSI_CLEAR"\n"));
00065     }
00066   };
00067 
00069   InformDebug inform_debug;
00070 };
00071 
00072 #endif
Generated on Mon Jan 24 12:04:37 2011 for FASTlib by  doxygen 1.6.3