EgtGeneral :
- migliorato debug errori di ToString.
This commit is contained in:
+8
-1
@@ -16,7 +16,9 @@
|
||||
|
||||
//--------------------------- Include ----------------------------------------
|
||||
#include "stdafx.h"
|
||||
#include "DllMain.h"
|
||||
#include "/EgtDEv/Include/EGnStringUtils.h"
|
||||
#include "/EgtDev/Include/EgtILogger.h"
|
||||
#include <time.h>
|
||||
|
||||
using namespace std ;
|
||||
@@ -120,6 +122,8 @@ ToString( double dVal, int nPrec)
|
||||
// se errore, ritorno stringa opportuna
|
||||
if ( nErr != 0) {
|
||||
_ASSERT( 0) ;
|
||||
string sErr = "ToString Error : " + ToString( nErr) ;
|
||||
LOG_ERROR( GetEGnLogger(), sErr.c_str())
|
||||
return "#Error" ;
|
||||
}
|
||||
|
||||
@@ -159,8 +163,11 @@ ToString( double dVal, int nPrec)
|
||||
}
|
||||
// gestione cifre e .
|
||||
while ( *pBuff != '\0') {
|
||||
if ( *pBuff == '#') // NAN, INFINITY, INDEFINITE
|
||||
if ( *pBuff == '#') { // NAN, INFINITY, INDEFINITE
|
||||
_ASSERT( 0) ;
|
||||
string sErr = "ToString Error : " + string( szBuff) ;
|
||||
LOG_ERROR( GetEGnLogger(), sErr.c_str())
|
||||
}
|
||||
if ( nDecimal == 0) {
|
||||
*pDest = '.' ;
|
||||
pDest ++ ;
|
||||
|
||||
Reference in New Issue
Block a user