git-svn-id: svn+ssh://idea.nguyen.vg/svn/sxsi/trunk/xpathcomp@84 3cdefd35-fc62-479d...
[SXSI/xpathcomp.git] / debug.ml
index 1a1b3b3..de10dd0 100644 (file)
--- a/debug.ml
+++ b/debug.ml
@@ -20,14 +20,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 *)