1N/A * Copyright (c) 2000, 2001, 2003 Sendmail, Inc. and its suppliers. 1N/A * All rights reserved. 1N/A * By using this file, you agree to the terms and conditions set 1N/A * forth in the LICENSE file which can be found at the top level of 1N/A * the sendmail distribution. 1N/A * $Id: debug.h,v 1.16 2003/01/10 00:26:06 ca Exp $ 1N/A#
pragma ident "%Z%%M% %I% %E% SMI" 1N/A** libsm debugging and tracing 1N/A** abstractions for printing trace messages 1N/A** abstractions for setting and testing debug activation levels 1N/A ** debug_level is the activation level of this debug 1N/A ** object. Level 0 means no debug activity. 1N/A ** It is initialized to SM_DEBUG_UNKNOWN, which indicates 1N/A ** that the true value is unknown. If debug_level == 1N/A ** SM_DEBUG_UNKNOWN, then the access functions will look up 1N/A ** its true value in the internal table of debug settings. 1N/A ** debug_name is the name used to reference this SM_DEBUG 1N/A ** structure via the sendmail -d option. 1N/A ** debug_desc is a literal character string of the form 1N/A ** "@(#)$Debug: <name> - <short description> $" 1N/A ** We keep a linked list of initialized SM_DEBUG structures 1N/A ** so that when sm_debug_addsetting is called, we can reset 1N/A ** them all back to the uninitialized state. 1N/A#
endif /* ! SM_DEBUG_CHECK */ 1N/A** This macro is cleverly designed so that if the debug object is below 1N/A** the specified level, then the only overhead is a single comparison 1N/A** (except for the first time this macro is invoked). 1N/A#
else /* SM_DEBUG_CHECK */ 1N/A#
endif /* SM_DEBUG_CHECK */ 1N/A#
endif /* ! SM_DEBUG_H */