Navit SVN

/work/compile/navit/src/navit/map/garmin/garmin.h

00001 /*
00002         Copyright (C) 2007  Alexander Atanasov      <aatanasov@gmail.com>
00003 
00004         This program is free software; you can redistribute it and/or modify
00005         it under the terms of the GNU General Public License as published by
00006         the Free Software Foundation; version 2 of the License.
00007 
00008         This program is distributed in the hope that it will be useful,
00009         but WITHOUT ANY WARRANTY; without even the implied warranty of
00010         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011         GNU General Public License for more details.
00012 
00013         You should have received a copy of the GNU General Public License
00014         along with this program; if not, write to the Free Software
00015         Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
00016         MA  02110-1301  USA
00017     
00018         Garmin and MapSource are registered trademarks or trademarks
00019         of Garmin Ltd. or one of its subsidiaries.
00020 
00021 */
00022 
00023 #define dlog(x,y ...) logfn(__FILE__,__LINE__,x, ##y)
00024 #ifdef HARDDEBUG
00025 #define ddlog(x,y ...) logfn(__FILE__,__LINE__,x, ##y)
00026 #else
00027 #define ddlog(x,y ...)
00028 #endif
00029 
00030 extern int garmin_debug;
00031 void logfn(char *file, int line, int level, char *fmt, ...);
00032