File: tests_assertion.h

package info (click to toggle)
libgtextutils 0.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,680 kB
  • sloc: sh: 10,041; cpp: 947; ansic: 415; makefile: 69
file content (13 lines) | stat: -rw-r--r-- 217 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef __UNIT_TESTS_ASSERTION_H__
#define __UNIT_TESTS_ASSERTION_H__

#define ASSERT(x) \
	do { \
		if (!(x)) { \
			errx(1,"ASSERTION FAILED (%s:%d): "#x, \
					__FILE__, __LINE__ ) ; \
		} \
	} while (0)


#endif