From ad182ae0cbdc92bab69d8270c383c9b1785eebc8 Mon Sep 17 00:00:00 2001 From: "waldemar%netscape.com" Date: Thu, 2 Mar 2000 01:54:49 +0000 Subject: [PATCH] Visual C++ version --- js/js2/cplusplustests/cplusplustests.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/js2/cplusplustests/cplusplustests.cpp b/js/js2/cplusplustests/cplusplustests.cpp index a01705017867..41e0542b078d 100644 --- a/js/js2/cplusplustests/cplusplustests.cpp +++ b/js/js2/cplusplustests/cplusplustests.cpp @@ -22,6 +22,14 @@ void *operator new(size_t size, Arena &arena) return p; } +#ifndef __MWERKS__ +void operator delete(void *p, Arena &arena) +{ + printf("Deleting object at %p using arena \"%s\"\n", p, arena.name); +} +#endif + + void operator delete(void *p) { printf("Deleting object at %p\n", p);