[phreeqci] added 'new' debugging

This commit is contained in:
Scott R Charlton 2021-04-19 17:17:02 -06:00
parent 608e74f5d3
commit 2d8ca2d0f3
4 changed files with 38 additions and 0 deletions

View File

@ -1,6 +1,16 @@
#include "Phreeqc.h"
#include "PHRQ_base.h"
#include <iostream>
#include "PHRQ_io.h"
#if defined(PHREEQCI_GUI)
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#endif
PHRQ_base::
PHRQ_base(void)
{

View File

@ -1,4 +1,5 @@
#include <assert.h>
#include "Phreeqc.h"
#include "PHRQ_io.h"
#include "Parser.h"
@ -13,6 +14,15 @@
#include <stdio.h>
#include <stdarg.h>
#if defined(PHREEQCI_GUI)
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#endif
PHRQ_io::
PHRQ_io(void)
{

View File

@ -15,6 +15,15 @@
#include "Parser.h"
#include "PHRQ_io.h"
#if defined(PHREEQCI_GUI)
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

View File

@ -12,6 +12,15 @@
#include "float.h"
#include "math.h"
#if defined(PHREEQCI_GUI)
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#endif
////////////////////////////////////////////////////////////////////////////
int
Utilities::strcmp_nocase_arg1(const char *str1, const char *str2)