ROOT logo
#include "hdebug.h"
#include <stdio.h>

ClassImp(HDebug)

  HDebug::HDebug(void) {
    fIdentLevel=0;
    gDebuger=this;
}

HDebug::~HDebug(void) {
}

void HDebug::message(const Text_t *format,...) {
    va_list ap;
    va_start(ap,format);
    for (Int_t i=0;i<fIdentLevel*2;i++) putchar(' ');
    vprintf(format,ap);
    putchar('\n');
    va_end(ap);
}

void HDebug::enterFunc(const Text_t *func) {
  message("entering %s",func);
  incIdentLevel();
}

void HDebug::leaveFunc(const Text_t *func) {
  message("returning from %s",func);
  decIdentLevel();
}

HDebug *gDebuger=0;
 hdebug.cc:1
 hdebug.cc:2
 hdebug.cc:3
 hdebug.cc:4
 hdebug.cc:5
 hdebug.cc:6
 hdebug.cc:7
 hdebug.cc:8
 hdebug.cc:9
 hdebug.cc:10
 hdebug.cc:11
 hdebug.cc:12
 hdebug.cc:13
 hdebug.cc:14
 hdebug.cc:15
 hdebug.cc:16
 hdebug.cc:17
 hdebug.cc:18
 hdebug.cc:19
 hdebug.cc:20
 hdebug.cc:21
 hdebug.cc:22
 hdebug.cc:23
 hdebug.cc:24
 hdebug.cc:25
 hdebug.cc:26
 hdebug.cc:27
 hdebug.cc:28
 hdebug.cc:29
 hdebug.cc:30
 hdebug.cc:31
 hdebug.cc:32
 hdebug.cc:33