Allow compilation of test programs when TEST is defined.
author |
diego |
date |
Tue, 08 Jan 2008 22:54:49 +0000 |
parents |
344948d71978 |
children |
e7192ff1857d |
files |
integer.c mathematics.c |
diffstat |
2 files changed, 3 insertions(+), 2 deletions(-)
[+]
|
line diff
--- a/integer.c Tue Jan 08 22:53:25 2008 +0000
+++ b/integer.c Tue Jan 08 22:54:49 2008 +0000
@@ -156,7 +156,7 @@
return out;
}
-#if 0
+#ifdef TEST
#undef NDEBUG
#include <assert.h>
--- a/mathematics.c Tue Jan 08 22:53:25 2008 +0000
+++ b/mathematics.c Tue Jan 08 22:54:49 2008 +0000
@@ -110,7 +110,8 @@
int64_t c= cq.num * (int64_t)bq.den;
return av_rescale_rnd(a, b, c, AV_ROUND_NEAR_INF);
}
-#if 0
+
+#ifdef TEST
#include "integer.h"
#undef printf
main(void){