/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
 * This file is part of the libpict project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

#ifndef __LIBPICT_UTILS_H__
#define __LIBPICT_UTILS_H__

#include <stdio.h>

//#define DEBUG // FIXME !

// debug message includes source file and line number
//#define VERBOSE_DEBUG 1

// do nothing with debug messages in a release compile
#ifdef DEBUG
#ifdef VERBOSE_DEBUG
#define PICT_DEBUG_MSG(M) printf("%15s:%5d: ", __FILE__, __LINE__); printf M
#define Pict_DEBUG(M) M
#else
#define PICT_DEBUG_MSG(M) printf M
#define Pict_DEBUG(M) M
#endif
#else
#define PICT_DEBUG_MSG(M)
#define Pict_DEBUG(M)
#endif

namespace libpict
{

class EndOfStreamException
{
};

} // namespace libpict

#endif // __LIBPICT_UTILS_H__
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */