recalculate the bounding boxes when drawing primatives via the libgerbv API
[geda-gerbv.git] / src / common.h
blobd1d209220a4c88daaa5252f8c28941008de0f392
1 /*
2 * $Id$
4 * gEDA - GNU Electronic Design Automation
5 * This file is a part of gerbv.
7 * Copyright (C) 2007 Dan McMahill
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
23 /** \file common.h
24 \brief Contains basic defines for debug messages
25 \ingroup libgerbv
28 #ifndef __COMMON_H__
29 #define __COMMON_H__
31 #ifdef HAVE_CONFIG_H
32 #include "config.h"
33 #endif
35 #ifndef __GNUC__
36 #define __FUNCTION1(a,b) a ":" #b
37 #define __FUNCTION2(a,b) __FUNCTION1(a,b)
38 #define __FUNCTION__ __FUNCTION2(__FILE__,__LINE__)
39 #endif
41 #endif /* __COMMON_H__ */