00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ 00002 /* libwpg 00003 * Version: MPL 2.0 / LGPLv2.1+ 00004 * 00005 * This Source Code Form is subject to the terms of the Mozilla Public 00006 * License, v. 2.0. If a copy of the MPL was not distributed with this 00007 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 00008 * 00009 * Major Contributor(s): 00010 * Copyright (C) 2004 Marc Oude Kotte (marc@solcon.nl) 00011 * 00012 * For minor contributions see the git repository. 00013 * 00014 * Alternatively, the contents of this file may be used under the terms 00015 * of the GNU Lesser General Public License Version 2.1 or later 00016 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are 00017 * applicable instead of those above. 00018 * 00019 * For further information visit http://libwpg.sourceforge.net 00020 */ 00021 00022 /* "This product is not manufactured, approved, or supported by 00023 * Corel Corporation or Corel Corporation Limited." 00024 */ 00025 00026 #ifndef __LIBWPG_UTILS_H__ 00027 #define __LIBWPG_UTILS_H__ 00028 00029 #include <stdio.h> 00030 00031 //#define DEBUG // FIXME ! 00032 00033 // debug message includes source file and line number 00034 //#define VERBOSE_DEBUG 1 00035 00036 // do nothing with debug messages in a release compile 00037 #ifdef DEBUG 00038 #ifdef VERBOSE_DEBUG 00039 #define WPG_DEBUG_MSG(M) printf("%15s:%5d: ", __FILE__, __LINE__); printf M 00040 #define WPG_DEBUG(M) M 00041 #else 00042 #define WPG_DEBUG_MSG(M) printf M 00043 #define WPG_DEBUG(M) M 00044 #endif 00045 #else 00046 #define WPG_DEBUG_MSG(M) 00047 #define WPG_DEBUG(M) 00048 #endif 00049 00050 #endif // __LIBWPG_UTILS_H__ 00051 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */