home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / wincom / dllcom / public / dlldbg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.4 KB  |  50 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. #ifndef __DllDebug_H
  20. #define __DllDebug_H
  21.  
  22. #ifdef DLL_RELEASE
  23. #define DLL_ASSERT(a) ((void)0)
  24. #endif
  25. #ifdef DLL_DEBUG
  26. #define DLL_ASSERT(a) ((a) ? ((void)0) : DebugBreak())
  27. #endif
  28.  
  29. #ifdef DLL_RELEASE
  30. #define DLL_VERIFY(a) ((void)(a))
  31. #endif
  32. #ifdef DLL_DEBUG
  33. #define DLL_VERIFY(a) DLL_ASSERT(a)
  34. #endif
  35.  
  36. #ifdef DLL_RELEASE
  37. #define DLL_TRACE 1 ? ((void)0) : DLL_Trace
  38. #endif
  39. #ifdef DLL_DEBUG
  40. #define DLL_TRACE DLL_Trace
  41. #endif
  42.  
  43. #ifdef DLL_RELEASE
  44. inline void DLL_Trace(const char *, ...) { }
  45. #endif
  46. #ifdef DLL_DEBUG
  47. void DLL_Trace(const char *pFormat, ...);
  48. #endif
  49.  
  50. #endif // __DllDebug_H