~pac72/ubuntu/lucid/ddd/devel

« back to all changes in this revision

Viewing changes to ddd/MemCheck.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Schepler
  • Date: 2004-07-22 03:49:37 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040722034937-cysl08t1jvba4jrx
Tags: 1:3.3.9-3
USERINFO has been renamed to USERINFO.txt; adjust debian/rules code
to match, to get correct information on the About DDD dialog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// $Id: MemCheck.h,v 1.12 2000/12/11 12:21:47 zeller Exp $ -*- C++ -*-
 
1
// $Id$ -*- C++ -*-
2
2
// Memory Checker
3
3
 
4
4
// Copyright (C) 1995 Technische Universitaet Braunschweig, Germany.
29
29
#ifndef _DDD_MemCheck_h
30
30
#define _DDD_MemCheck_h
31
31
 
32
 
#ifdef __GNUG__
33
 
#pragma interface
34
 
#endif
35
 
 
36
 
#include <iostream.h>
 
32
#include <iostream>
37
33
#include "strclass.h"
38
34
 
39
35
// Include this file in any module you wish to debug.
117
113
    static void check(void *p);
118
114
 
119
115
    // Issue a map of all allocated blocks (starting with block #start)
120
 
    static void map(ostream& os, unsigned start = 0, const char *prefix = "");
 
116
    static void map(std::ostream& os, unsigned start = 0, const char *prefix = "");
121
117
 
122
118
    // Return current block number
123
119
    static unsigned tic() { return tics; }
157
153
 
158
154
    ~MemChecker()
159
155
    {
160
 
        MemCheck::map(clog, start, prefix.chars());
 
156
        MemCheck::map(std::clog, start, prefix.chars());
161
157
    }
162
158
};
163
159