Mercurial > repos > rhope
diff cbackend_c.rhope @ 154:29b479a2ce48
Make memory leak detection controllable by a define
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 21 Dec 2010 04:11:47 +0000 |
parents | b75ec364cecc |
children | d1e206ff75f9 |
line wrap: on
line diff
--- a/cbackend_c.rhope Tue Dec 21 04:11:29 2010 +0000 +++ b/cbackend_c.rhope Tue Dec 21 04:11:47 2010 +0000 @@ -1838,12 +1838,14 @@ inout[1] = make_String(argv[idx]); rhope(FUNC_Append, inout, 2, 2); } - numret = rhope(FUNC_Main, inout, 1, 1);"] + numret = rhope(FUNC_Main, inout, 1, 1); +#ifdef ENABLE_LEAK_DETECTION\n"] ]Append[Fold[_Consts C Release[?, ?, ?, p], "", constants]] ]Append[ " print_mem_info(manager); print_live_object_types(manager); +#endif //ENABLE_LEAK_DETECTION #ifdef ENABLE_PROFILING for (idx = 0; idx < END; ++idx)