kfloppy
debug.h
Go to the documentation of this file.00001 /* 00002 00003 This file is part of the KFloppy program, part of the KDE project 00004 00005 Copyright (C) 2003 Adriaan de Groot <groot@kde.org> 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 2 of the License, or 00010 (at your option) any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program in a file called COPYING; if not, write to 00019 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 00020 MA 02110-1301, USA. 00021 00022 */ 00023 00024 #ifndef DEBUG_H 00025 #define DEBUG_H 00026 00039 #define KFAREA (2002) 00040 00041 #ifndef NDEBUG 00042 #define DEBUGSETUP kDebug(KFAREA) << (__PRETTY_FUNCTION__) 00043 #define DEBUGS(a) kDebug(KFAREA) << " " << a 00044 #else 00045 #define DEBUGSETUP 00046 #define DEBUGS(a) 00047 #endif 00048 00049 00050 // Detect vaguely what OS we're working with. Map variants 00051 // to one known kind. 00052 // 00053 // 00054 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) 00055 #define ANY_BSD (1) 00056 #else 00057 #if defined(linux) || defined(LINUX) || defined (__linux) || defined(__linux__) 00058 #define ANY_LINUX (1) 00059 #endif 00060 #endif 00061 00062 00063 00064 #endif 00065
KDE 4.2 API Reference