Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

macros.h

Go to the documentation of this file.
00001 /*
00002  *    gui - [gega user interface] the flexible solution for user interface problems
00003  *    Copyright (C) 2002  Gergely Gati
00004  *
00005  *    This program is free software; you can redistribute it and/or modify
00006  *    it under the terms of the GNU General Public License as published by
00007  *    the Free Software Foundation; version 2 of the License.
00008  *
00009  *    This program is distributed in the hope that it will be useful,
00010  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *    GNU General Public License for more details.
00013  *
00014  *    You should have received a copy of the GNU General Public License
00015  *    along with this program; if not, write to the Free Software
00016  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017  *
00018  *    Gergely Gati
00019  *      email:           g.gati@freemail.hu
00020  *      AIM screenname:  GatiGergely
00021  *      ICQ number:      93131690
00022  *
00023  */
00024 /*
00025  *  macros.h
00026  *
00027  *  Author            : Ferenc Zavacki, Gergely Gáti
00028  *  Date              : April 28, 2000
00029  *  Description       :
00030  *
00031  */
00032 
00033 #ifndef __MACROS_H
00034 #define __MACROS_H
00035 
00036 
00037 #ifndef min
00038 #define min(a, b) (((a) < (b)) ? (a) : (b))
00039 #endif
00040 
00041 #ifndef max
00042 #define max(a, b) (((a) > (b)) ? (a) : (b))
00043 #endif
00044 
00045 #define swap(a, b) ((a) ^= (b) ^= (a) ^= (b))
00046 
00047 #define red(rgb) (((rgb) >> 16) & 0xff)
00048 #define green(rgb) (((rgb) >> 8) & 0xff)
00049 #define blue(rgb) ((rgb) & 0xff)
00050 
00051 #ifndef NULL
00052 #define NULL 0
00053 #endif
00054 
00055 #ifndef TRUE
00056 #define TRUE 1
00057 #endif
00058 
00059 #ifndef FALSE
00060 #define FALSE 0
00061 #endif
00062 
00063 #endif

Generated on Tue Jan 7 12:11:22 2003 for THEGUI by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002