| 1 |
/* |
| 2 |
* tjlib-internal.h - TaskJuggler |
| 3 |
* |
| 4 |
* SPDX-FileCopyrightText: 2002 Chris Schlaeger <[email protected]> |
| 5 |
* |
| 6 |
* This program is free software; you can redistribute it and/or modify |
| 7 |
* it under the terms of version 2 of the GNU General Public License as |
| 8 |
* published by the Free Software Foundation. |
| 9 |
* |
| 10 |
* $Id$ |
| 11 |
*/ |
| 12 |
#ifndef _tjlib_internal_h_ |
| 13 |
#define _tjlib_internal_h_ |
| 14 |
|
| 15 |
// TODO: For proper internationalization we have to fix this. |
| 16 |
#ifndef I18N_NOOP |
| 17 |
#define I18N_NOOP(x) (x) |
| 18 |
#endif |
| 19 |
|
| 20 |
#ifndef i18n |
| 21 |
#define i18n(x) QString(x) |
| 22 |
#endif |
| 23 |
|
| 24 |
// Dummy macro to mark TaskJuggler syntax keywords |
| 25 |
#define KW(a) a |
| 26 |
|
| 27 |
#include <QString> |
| 28 |
#include <QDebug> |
| 29 |
|
| 30 |
namespace TJ |
| 31 |
{ |
| 32 |
|
| 33 |
inline void |
| 34 |
tjWarning(const QString& msg) |
| 35 |
{ |
| 36 |
qWarning()<<msg; |
| 37 |
} |
| 38 |
|
| 39 |
inline void |
| 40 |
tjDebug(const QString& msg) |
| 41 |
{ |
| 42 |
qDebug()<<msg; |
| 43 |
} |
| 44 |
|
| 45 |
} // namespace TJ |
| 46 |
|
| 47 |
#endif |
| 48 |
|