source: zzuf/trunk/src/debug.h @ 1790

Last change on this file since 1790 was 1790, checked in by Sam Hocevar, 13 years ago
  • Allow to use debug() everywhere in the code; it'll just do nothing in zzuf itself, and will only output stuff in the library.
  • Property svn:keywords set to Id
File size: 692 bytes
Line 
1/*
2 *  zzuf - general purpose fuzzer
3 *  Copyright (c) 2006 Sam Hocevar <sam@zoy.org>
4 *                All Rights Reserved
5 *
6 *  $Id: debug.h 1790 2007-07-06 13:34:38Z sam $
7 *
8 *  This program is free software. It comes without any warranty, to
9 *  the extent permitted by applicable law. You can redistribute it
10 *  and/or modify it under the terms of the Do What The Fuck You Want
11 *  To Public License, Version 2, as published by Sam Hocevar. See
12 *  http://sam.zoy.org/wtfpl/COPYING for more details.
13 */
14
15/*
16 *  debug.h: debugging support
17 */
18
19extern void _zz_debug(const char *format, ...)
20       __attribute__((__format__(__printf__, 1, 2)));
21
22#ifdef LIBZZUF
23#   define debug _zz_debug
24#else
25#   define debug(...)
26#endif
27
Note: See TracBrowser for help on using the repository browser.