File: pdp_debug.h

package info (click to toggle)
pdp 1%3A0.14.1%2Bdarcs20180201-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,228 kB
  • sloc: ansic: 22,424; asm: 2,088; makefile: 537; perl: 145; sh: 108; cpp: 4
file content (16 lines) | stat: -rw-r--r-- 317 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef __PDP_DEBUG_H_
#define __PDP_DEBUG_H_

#include "pdp_config.h" // needed for PDP_DEBUG define

void pdp_assert_hook (char *condition, char *file, int line);



#if PDP_DEBUG
#define PDP_ASSERT(x) if (!(x)) {pdp_assert_hook(#x, __FILE__, __LINE__);}
#else
#define PDP_ASSERT(x)
#endif

#endif //__PDP_DEBUG_H_