/* * error.h (C) 2006, Aurélien Croc (AP²C) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the * Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id: error.h 108 2007-11-16 02:28:52Z ap2c $ * */ #ifndef ERROR_H_ #define ERROR_H_ #include #define _(X) X #define ERROR(X, args ...) fprintf(stderr, "" X "\n", ##args); #ifdef ENABLE_DEBUG # define DEBUG(X, args ...) fprintf(stderr, "" X "\n", ##args); #else # define DEBUG(X, args ...) #endif /* ENABLE_DEBUG */ #endif /* ERROR_H_ */ /* vim: set expandtab tabstop=4 shiftwidth=4 smarttab tw=80 cin enc=utf8: */