2014-12-23 14:56:15 -07:00
|
|
|
#include "buildingplan-lib.h"
|
|
|
|
|
2020-09-08 01:17:56 -06:00
|
|
|
#include "Core.h"
|
2014-12-23 14:56:15 -07:00
|
|
|
|
2020-09-08 01:17:56 -06:00
|
|
|
using namespace DFHack;
|
2015-02-14 20:53:06 -07:00
|
|
|
|
2020-09-08 01:17:56 -06:00
|
|
|
bool show_debugging = false;
|
2014-12-23 14:56:15 -07:00
|
|
|
|
2020-09-08 01:17:56 -06:00
|
|
|
void debug(const std::string &msg)
|
2014-12-23 14:56:15 -07:00
|
|
|
{
|
2020-09-08 01:17:56 -06:00
|
|
|
if (!show_debugging)
|
2015-02-14 20:53:06 -07:00
|
|
|
return;
|
|
|
|
|
2020-09-08 01:17:56 -06:00
|
|
|
color_ostream_proxy out(Core::getInstance().getConsole());
|
|
|
|
out << "DEBUG: " << msg << endl;
|
2015-07-27 12:05:26 -06:00
|
|
|
}
|