Mercurial > hg > octave-lojdl > gnulib-hg
comparison tests/test-freopen.c @ 12421:e8d2c6fc33ad
Use spaces for indentation, not tabs.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 10 Dec 2009 20:28:30 +0100 |
parents | 0be6f1ab456d |
children | 33ab12a7cea2 |
comparison
equal
deleted
inserted
replaced
12420:5850b9a81029 | 12421:e8d2c6fc33ad |
---|---|
20 | 20 |
21 #include <stdio.h> | 21 #include <stdio.h> |
22 #include <stdlib.h> | 22 #include <stdlib.h> |
23 | 23 |
24 #define ASSERT(expr) \ | 24 #define ASSERT(expr) \ |
25 do \ | 25 do \ |
26 { \ | 26 { \ |
27 if (!(expr)) \ | 27 if (!(expr)) \ |
28 { \ | 28 { \ |
29 fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ | 29 fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \ |
30 fflush (stderr); \ | 30 fflush (stderr); \ |
31 abort (); \ | 31 abort (); \ |
32 } \ | 32 } \ |
33 } \ | 33 } \ |
34 while (0) | 34 while (0) |
35 | 35 |
36 int | 36 int |
37 main () | 37 main () |
38 { | 38 { |