]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(ASSERT): New macro.
authorNiels Möller <nisse@lysator.liu.se>
Sat, 28 Sep 2002 13:56:56 +0000 (15:56 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Sat, 28 Sep 2002 13:56:56 +0000 (15:56 +0200)
Rev: src/nettle/testsuite/testutils.h:1.9

testsuite/testutils.h

index 89d2de74484348579de73664449be6f7b7012d99..6dcef28788b0927a27f31cb9aba0805ff35d09a0 100644 (file)
@@ -91,4 +91,6 @@ test_rsa_sha1(struct rsa_public_key *pub,
 #define SKIP() exit(77)
 #define SUCCESS() return EXIT_SUCCESS
 
+#define ASSERT(x) do { if (!(x)) FAIL(); } while(0)
+
 #endif /* NETTLE_TESTUTILS_H_INCLUDED */