YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
log.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6
7#ifndef LOG_H
8#define LOG_H
9
10#ifdef QT_DEBUG
11#define LOG(...) qDebug(__VA_ARGS__)
12#else
13#define LOG(...) yDebug(__VA_ARGS__)
14#endif
15
16#ifdef QT_DEBUG
17#define LOG_ERROR(...) qDebug(__VA_ARGS__)
18#else
19#define LOG_ERROR(...) yError(__VA_ARGS__)
20#endif
21
22#ifdef QT_DEBUG
23#define LOG_INFO(...) qDebug(__VA_ARGS__)
24#else
25#define LOG_INFO(...) yInfo(__VA_ARGS__)
26#endif
27
28#endif // LOG_H