Mercurial > repos > rhope
changeset 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 | d86df83402f3 |
children | d59611dcec71 |
files | cbackend_c.rhope |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
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)