/* * glass.h * * Central information header file * * © 1994-1998 Straylight */ /*----- Licensing note ----------------------------------------------------* * * This file is part of Straylight's Glass. * * Glass 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; either version 2, or (at your option) * any later version. * * Glass 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 Glass. If not, write to the Free Software Foundation, * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef __glass_h #define __glass_h /*----- Standard macros ---------------------------------------------------*/ #define unused(x) ((x)=(x)) /* Prevents compiler complaints about */ /* unused variables */ #ifndef BOOL #define BOOL int /* Standard type definition, fits in with */ #define TRUE 1 /* the RISC_OSlib definition */ #define FALSE 0 #endif /*----- Bitwise operators -------------------------------------------------*/ #define bit(b) (1<<(b)) /* Returns the appropriate bit set */ #define tst(x,b) (((x)>>(b))&1) /* Test bit and return TRUE or FALSE */ #define set(x,b) (x)|=bit(b); /* Set appropriate bit */ #define reset(x,b) (x)&=~bit(b); /* Reset appropriate bit */ #endif