Converted to new logstream debugging facility. This allows release

builds with no messages at all (and no performance impact) by using
the -DFG_NDEBUG flag.
This commit is contained in:
curt
1998-11-06 21:17:23 +00:00
parent 6766825159
commit 6816ecb3ea
6 changed files with 58 additions and 44 deletions

View File

@@ -32,7 +32,7 @@
#include <stdlib.h> /* for random(), srandom() */
#include <time.h> /* for time() to seed srandom() */
#include <Debug/fg_debug.h>
/* #include <Debug/fg_debug.h> */
#include "fg_random.h"
@@ -54,7 +54,7 @@
/* Seed the random number generater with time() so we don't see the
* same sequence every time */
void fg_srandom(void) {
fgPrintf( FG_MATH, FG_INFO, "Seeding random number generater\n");
/* fgPrintf( FG_MATH, FG_INFO, "Seeding random number generater\n"); */
#ifdef HAVE_RAND
srand(time(NULL));
@@ -75,9 +75,14 @@ double fg_random(void) {
/* $Log$
/* Revision 1.8 1998/04/25 22:06:23 curt
/* Edited cvs log messages in source files ... bad bad bad!
/* Revision 1.9 1998/11/06 21:17:26 curt
/* Converted to new logstream debugging facility. This allows release
/* builds with no messages at all (and no performance impact) by using
/* the -DFG_NDEBUG flag.
/*
* Revision 1.8 1998/04/25 22:06:23 curt
* Edited cvs log messages in source files ... bad bad bad!
*
* Revision 1.7 1998/04/24 00:43:13 curt
* Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
*