summaryrefslogtreecommitdiff
path: root/printutils.cc
blob: 8f53cd3082a2b14ab207d258c3550421c675fc8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "printutils.h"
#include "MainWindow.h"

void PRINT(const QString &msg)
{
  do {
    if (MainWindow::current_win.isNull()) {
      fprintf(stderr, "%s\n", msg.toAscii().data()); 
    }
    else {
      MainWindow::current_win->console->append(msg);
    }
  } while (0);
}
contact: Jan Huwald // Impressum