aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flsupport.h
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/flext/source/flsupport.h')
-rw-r--r--externals/grill/flext/source/flsupport.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/externals/grill/flext/source/flsupport.h b/externals/grill/flext/source/flsupport.h
index ead75804..e38697f4 100644
--- a/externals/grill/flext/source/flsupport.h
+++ b/externals/grill/flext/source/flsupport.h
@@ -56,6 +56,12 @@ public:
inline void *operator new(size_t,void *p) { return p; }
inline void operator delete(void *,void *) {}
+#ifdef FLEXT_DEBUGMEM
+ static bool MemCheck(void *blk);
+#else
+ static bool MemCheck(void *) { return true; }
+#endif
+
#ifndef __MRC__ // doesn't allow new[] overloading?!
inline void *operator new[](size_t bytes) { return operator new(bytes); }
inline void operator delete[](void *blk) { operator delete(blk); }