treewars/debug.h

26 lines
302 B
C
Raw Normal View History

2011-06-23 13:38:15 +00:00
#ifndef _DEBUG_H_
#define _DEBUG_H_
#ifdef DEBUG
2011-06-29 02:14:55 +00:00
2011-06-23 13:38:15 +00:00
#include <iostream>
#include <cstdio>
2011-06-29 02:14:55 +00:00
#include <string>
using std::fprintf;
2011-06-23 13:38:15 +00:00
using std::cerr;
using std::endl;
2011-06-29 02:14:55 +00:00
using std::string;
#endif
inline void debug(string msg)
{
#ifdef DEBUG
cerr << "debug: " << msg << endl;
2011-06-23 13:38:15 +00:00
#endif
2011-06-29 02:14:55 +00:00
return;
}
2011-06-23 13:38:15 +00:00
#endif