[Scummvm-git-logs] scummvm master -> 47899ee46f07958fde0ec421a0c9399380511c48
grisenti
noreply at scummvm.org
Sat Nov 25 17:06:09 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:
47899ee46f HPL1: Disable assertions in Newton code
Commit: 47899ee46f07958fde0ec421a0c9399380511c48
https://github.com/scummvm/scummvm/commit/47899ee46f07958fde0ec421a0c9399380511c48
Author: grisenti (emanuele at grisenti.net)
Date: 2023-11-25T18:05:59+01:00
Commit Message:
HPL1: Disable 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 b637b1ac085..fe5de50562c 100644
--- a/engines/hpl1/engine/libraries/newton/core/dgTypes.h
+++ b/engines/hpl1/engine/libraries/newton/core/dgTypes.h
@@ -100,7 +100,11 @@ class dgBigVector;
#endif
#define dgCheckFloat(x) (isfinite(x) && !isnan(x))
-#define NEWTON_ASSERT(x) assert(x);
+// Assertions have been disabled because they fired in areas
+// were there are no visible defects. They can be re-enabled when
+// debugging specific issues.
+// #define NEWTON_ASSERT(x) assert(x);
+#define NEWTON_ASSERT(x)
DG_INLINE dgInt32 exp_2(dgInt32 x) {
dgInt32 exp;
More information about the Scummvm-git-logs
mailing list