mirror of https://github.com/vitalif/openscad
15 lines
280 B
C++
15 lines
280 B
C++
|
#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);
|
||
|
}
|