From f4a584da6ea37115a459b45672b3bd1fff20b207 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 26 Jul 2015 15:26:47 -0400 Subject: [PATCH] Added comment about test.cpp and DebugTrapHandler for example code --- trap.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/trap.h b/trap.h index a19cc3d1..747e6901 100644 --- a/trap.h +++ b/trap.h @@ -16,6 +16,10 @@ // ************** run-time assertion *************** +// See test.cpp and DebugTrapHandler for code to install a NULL +// signal handler for SIGTRAP. The handler installs itself during +// initialization of the test program. + // Linux and Unix #if !defined(NDEBUG) && defined(CRYPTOPP_UNIX_AVAILABLE) # define CRYPTOPP_ASSERT(exp) { \ @@ -31,7 +35,7 @@ // Fallback to original behavior (including for NDEBUG) #else # define CRYPTOPP_ASSERT(exp) assert(exp) -#endif // NDEBUG +#endif // DEBUG and CRYPTOPP_UNIX_AVAILABLE #endif // CRYPTOPP_TRAP_H