cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
broke.cpp
Go to the documentation of this file.
1 /* This file is part of Cloudy and is copyright (C)1978-2022 by Gary J. Ferland and
2  * others. For conditions of distribution and use see copyright notice in license.txt */
3 #include "cddefines.h"
4 
5 #include "broke.h"
6 
7 #include "version.h"
8 #include "warnings.h"
9 
11 
13 {
14  DEBUG_ENTRY( "t_broke::comment()" );
15 
16  /* this flag set by call to fixit routine,
17  * to show that parts of the code need repair.
18  * lgRelease is true if this is release version */
19  if( lgFixit && !t_version::Inst().lgRelease )
20  {
21  w.bangin( " !The code needs to be fixed - search for fixit()." );
22  }
23 
24  /* this flag set by call to CodeReview routine,
25  * to show that parts of the code need to be reviewed.
26  * lgRelease is true if this is release version */
27  if( lgCheckit && !t_version::Inst().lgRelease )
28  {
29  w.bangin( " !New code needs to be reviewed - search for CodeReview()." );
30  }
31  /* this flag set by call to routine broken ( );
32  * and show that the code is broken. */
33  if( broke.lgBroke )
34  {
35  w.warnin( " W-The code is broken - search for broken()." );
36  }
37 }
38 
bool lgBroke
Definition: broke.h:30
void warnin(const char *chLine)
Definition: warnings.cpp:27
static t_version & Inst()
Definition: cddefines.h:209
Definition: broke.h:20
void comment(t_warnings &)
Definition: broke.cpp:12
bool lgFixit
Definition: broke.h:33
t_broke broke
Definition: broke.cpp:10
#define DEBUG_ENTRY(funcname)
Definition: cddefines.h:723
void bangin(const char *chLine)
Definition: warnings.cpp:73
bool lgCheckit
Definition: broke.h:37