Added comment about test.cpp and DebugTrapHandler for example code

pull/35/head
Jeffrey Walton 2015-07-26 15:26:47 -04:00
parent 30b706316b
commit f4a584da6e
1 changed files with 5 additions and 1 deletions

6
trap.h
View File

@ -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