cc.cc
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00038 #include "fastlib/base/cc.h"
00039 #include "fastlib/base/debug.h"
00040
00041
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