1 /***************************************************************************
3 * Copyright (C) 2006 David Brodsky *
5 * This library is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU Library General Public *
7 * License as published by the Free Software Foundation and appearing *
8 * in the file LICENSE.LGPL included in the packaging of this file. *
10 * This library is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
13 * Library General Public License for more details. *
15 ***************************************************************************/
17 #ifndef _tairon_core_log_h
18 #define _tairon_core_log_h
27 #define ERROR(x) printf("Error (" __FILE__ ":%d) %s\n", __LINE__, x)
33 #define WARNING(x) printf("Warning (" __FILE__ ":%d) %s\n", __LINE__, x)
39 #define INFO(x) printf("Info (" __FILE__ ":%d) %s\n", __LINE__, x)
45 #define DEBUG(x) printf("Debug (" __FILE__ ":%d) %s\n", __LINE__, x)
52 // vim: ai sw=4 ts=4 noet fdm=marker