00001 /* 00002 * $Id$ 00003 * 00004 * gEDA - GNU Electronic Design Automation 00005 * This file is a part of gerbv. 00006 * 00007 * Copyright (C) 2007 Dan McMahill 00008 * 00009 * This program is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA 00021 */ 00022 00028 #ifndef __COMMON_H__ 00029 #define __COMMON_H__ 00030 00031 #ifdef HAVE_CONFIG_H 00032 #include "config.h" 00033 #endif 00034 00035 #ifndef __GNUC__ 00036 #define __FUNCTION1(a,b) a ":" #b 00037 #define __FUNCTION2(a,b) __FUNCTION1(a,b) 00038 #define __FUNCTION__ __FUNCTION2(__FILE__,__LINE__) 00039 #endif 00040 00041 #endif /* __COMMON_H__ */ 00042