File: debug.h

package info (click to toggle)
altree 1.3.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,288 kB
  • sloc: perl: 3,482; ansic: 1,716; sh: 267; pascal: 67; makefile: 21
file content (15 lines) | stat: -rw-r--r-- 245 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef _DEBUG_H
#define _DEBUG_H

//#define DEBUG

#ifdef DEBUG
#  include <stdio.h>
#  define debug(str,...) fprintf(stderr, str "\n", ##__VA_ARGS__)
#else
#  define debug(str,...) ((void)0)
#  define NDEBUG
#endif
#include <assert.h>

#endif