From 1fdb258c4627531ac7fb009098c5a7fa6da10d15 Mon Sep 17 00:00:00 2001 From: Jens Alfke Date: Thu, 11 Nov 2021 10:07:04 -0800 Subject: Rename `DEBUG` to `DEBUG_SIPHASH` `DEBUG` is too generic a name to use for a flag that causes SipHash to log to the console on every hash operation; changed it to `DEBUG_SIPHASH`. An example: Xcode's project templates have a `-DDEBUG=1` Clang flag in the 'Debug' config, so nearly every iOS and macOS app defines DEBUG in dev builds! When I (@snej) added SipHash to my Mac project, I started getting huge amounts of console logs until I found and renamed its `#ifdef DEBUG`. --- halfsiphash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'halfsiphash.c') diff --git a/halfsiphash.c b/halfsiphash.c index a2f5876..18e6be7 100644 --- a/halfsiphash.c +++ b/halfsiphash.c @@ -56,7 +56,7 @@ v2 = ROTL(v2, 16); \ } while (0) -#ifdef DEBUG +#ifdef DEBUG_SIPHASH #define TRACE \ do { \ printf("(%3zu) v0 %08" PRIx32 "\n", inlen, v0); \ -- cgit v1.2.3