Logo Search packages:      
Sourcecode: scamper version File versions  Download package

scamper_debug.h

/*
 * scamper_debug.h
 * $Id: scamper_debug.h,v 1.11 2007/05/09 03:20:33 mjl Exp $
 *
 * Copyright (C) 2004-2007 The University of Waikato
 *
 * This program 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, version 2.
 *
 * This program 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 this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 */

#ifndef __SCAMPER_DEBUG_H
#define __SCAMPER_DEBUG_H

void printerror(const int ecode, char *(*error_itoa)(int),
            const char *func, const char *format, ...);

/* only define scamper_debug if scamper is being built in debugging mode */
#ifndef NDEBUG
void scamper_debug(const char *func, const char *format, ...);
#else
#define scamper_debug(func, format, ...) ((void)0)
#endif

#endif /* scamper_debug.h */

Generated by  Doxygen 1.6.0   Back to index