c_est_pas_fait.C

00001 /*
00002  * Stops the execution. In debug mode: ask for continuation. In normal mode:
00003  * abort the main program.
00004  *
00005  */
00006 
00007 /*
00008  *   Copyright (c) 1999-2000 Jean-Alain Marck
00009  *
00010  *   This file is part of LORENE.
00011  *
00012  *   LORENE is free software; you can redistribute it and/or modify
00013  *   it under the terms of the GNU General Public License as published by
00014  *   the Free Software Foundation; either version 2 of the License, or
00015  *   (at your option) any later version.
00016  *
00017  *   LORENE is distributed in the hope that it will be useful,
00018  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  *   GNU General Public License for more details.
00021  *
00022  *   You should have received a copy of the GNU General Public License
00023  *   along with LORENE; if not, write to the Free Software
00024  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025  *
00026  */
00027 
00028 
00029 char c_est_pas_fait_C[] = "$Header: /cvsroot/Lorene/C++/Source/Non_class_members/Utilities/c_est_pas_fait.C,v 1.4 2008/08/19 06:42:01 j_novak Exp $" ;
00030 
00031 /*
00032  * $Id: c_est_pas_fait.C,v 1.4 2008/08/19 06:42:01 j_novak Exp $
00033  * $Log: c_est_pas_fait.C,v $
00034  * Revision 1.4  2008/08/19 06:42:01  j_novak
00035  * Minor modifications to avoid warnings with gcc 4.3. Most of them concern
00036  * cast-type operations, and constant strings that must be defined as const char*
00037  *
00038  * Revision 1.3  2002/10/16 14:37:12  j_novak
00039  * Reorganization of #include instructions of standard C++, in order to
00040  * use experimental version 3 of gcc.
00041  *
00042  * Revision 1.2  2001/11/29 16:17:54  e_gourgoulhon
00043  * minor modifs
00044  *
00045  * Revision 1.1.1.1  2001/11/20 15:19:29  e_gourgoulhon
00046  * LORENE
00047  *
00048  * Revision 2.0  1999/02/15  10:42:45  hyc
00049  * *** empty log message ***
00050  *
00051  * Revision 2.0  1999/01/15  09:10:39  hyc
00052  * *** empty log message ***
00053  *
00054  * Revision 2.0  1999/01/15  09:10:39  hyc
00055  * *** empty log message ***
00056  *
00057  *
00058  * $Header: /cvsroot/Lorene/C++/Source/Non_class_members/Utilities/c_est_pas_fait.C,v 1.4 2008/08/19 06:42:01 j_novak Exp $
00059  *
00060  */
00061 
00062 // headers du C++
00063 #include"headcpp.h"
00064 #include <stdlib.h>
00065 
00066 void c_est_pas_fait(const char * fichier) {
00067 
00068 #ifdef NDEBUG
00069     cout.flush() ;
00070     cout << "Routine not ready in " << fichier << " !" << endl ;
00071     abort() ;
00072 #else
00073     cout.flush() ;
00074     cout << "Routine not ready in " << fichier << " !" << endl ;
00075     cout << "Next = 'return',  abort = '0'" << endl ;
00076     char c ;
00077     cin.get(c) ;
00078     if (c == '0') {
00079     abort() ;
00080     }
00081 #endif    
00082 }

Generated on Tue Feb 7 01:35:15 2012 for LORENE by  doxygen 1.4.6