[Scummvm-git-logs] scummvm master -> 298f5283b442573a3beacba9424a5def306fb359

grisenti noreply at scummvm.org
Thu Oct 19 12:52:40 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
298f5283b4 HPL1: Enable assertions in Newton code


Commit: 298f5283b442573a3beacba9424a5def306fb359
    https://github.com/scummvm/scummvm/commit/298f5283b442573a3beacba9424a5def306fb359
Author: grisenti (emanuele at grisenti.net)
Date: 2023-10-19T14:52:31+02:00

Commit Message:
HPL1: Enable assertions in Newton code

Changed paths:
    engines/hpl1/engine/libraries/newton/core/dgTypes.h


diff --git a/engines/hpl1/engine/libraries/newton/core/dgTypes.h b/engines/hpl1/engine/libraries/newton/core/dgTypes.h
index b741bdd1b5e..b637b1ac085 100644
--- a/engines/hpl1/engine/libraries/newton/core/dgTypes.h
+++ b/engines/hpl1/engine/libraries/newton/core/dgTypes.h
@@ -99,27 +99,8 @@ class dgBigVector;
 #define dgNaked
 #endif
 
-/*
-#ifdef _WIN32
-    #ifdef _DEBUG
-        #define dgCheckFloat(x) _finite(x)
-    #else
-        #define dgCheckFloat(x) true
-    #endif
-#else
-    #define dgCheckFloat(x) true
-#endif
-*/
-
-#ifdef _DEBUG
-#ifdef _WIN32
-#define dgCheckFloat(x) (_finite(x) && !_isnan(x))
-#else
 #define dgCheckFloat(x) (isfinite(x) && !isnan(x))
-#endif
-#endif
-
-#define NEWTON_ASSERT(x)
+#define NEWTON_ASSERT(x) assert(x);
 
 DG_INLINE dgInt32 exp_2(dgInt32 x) {
 	dgInt32 exp;




More information about the Scummvm-git-logs mailing list