changes
[SXSI/xpathcomp.git] / debug.ml
index 1a1b3b3..f754993 100644 (file)
--- a/debug.ml
+++ b/debug.ml
@@ -19,15 +19,14 @@ module Loc = Camlp4.PreCast.Loc
 
 
 DEFINE D(x) = ignore(x);
-
-DEFINE MM(v,l) = Memory.register v (Loc.to_string (l))
+DEFINE MM(v,l) = (let ____x = v in (Memory.register ____x (Loc.to_string (l)));____x)
 let () = Memory.schedule_stats ()
 
 
 ELSE
 
 DEFINE D(x) = ();
-DEFINE MM(v,l) = ()
+DEFINE MM(v,l) = (v)
 
 END (* IFDEF DEBUG *)