home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dmake40.zip / db.h < prev    next >
C/C++ Source or Header  |  1994-10-23  |  3KB  |  76 lines

  1. /* RCS      -- $Header: /u5/dvadura/src/public/dmake/src/RCS/db.h,v 1.1 1994/10/06 17:42:39 dvadura Exp $
  2. -- SYNOPSIS -- front end to DBUG macros.
  3. -- 
  4. -- DESCRIPTION
  5. --    This is a front end to Fred Fish's DBUG macros.  The intent was
  6. --    to provide an interface so that if you don't have the DBUG code
  7. --    you can still compile dmake, by undefining DBUG, if you do have
  8. --    the code then you can use Fred Fish's DBUG package.  Originally
  9. --    the DBUG stuff was copyrighted, it is now in the public domain
  10. --    so the need for this is not as apparent.
  11. -- 
  12. -- AUTHOR
  13. --      Dennis Vadura, dvadura@watdragon.uwaterloo.ca
  14. --      CS DEPT, University of Waterloo, Waterloo, Ont., Canada
  15. --
  16. -- COPYRIGHT
  17. --      Copyright (c) 1992,1994 by Dennis Vadura.  All rights reserved.
  18. -- 
  19. --      This program is free software; you can redistribute it and/or
  20. --      modify it under the terms of the GNU General Public License
  21. --      (version 1), as published by the Free Software Foundation, and
  22. --      found in the file 'LICENSE' included with this distribution.
  23. -- 
  24. --      This program is distributed in the hope that it will be useful,
  25. --      but WITHOUT ANY WARRANTY; without even the implied warrant of
  26. --      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  27. --      GNU General Public License for more details.
  28. -- 
  29. --      You should have received a copy of the GNU General Public License
  30. --      along with this program;  if not, write to the Free Software
  31. --      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  32. --
  33. -- LOG
  34. --     $Log: db.h,v $
  35.  * Revision 1.1  1994/10/06  17:42:39  dvadura
  36.  * dmake Release Version 4.0, Initial revision
  37.  *
  38. */
  39.  
  40. #ifndef    DB_h
  41. #define    DB_h
  42.  
  43. #ifdef DBUG
  44.  
  45. #  include "dbug.h"
  46.  
  47. #  define DB_ENTER(a1)                DBUG_ENTER(a1)
  48. #  define DB_RETURN(a1)               DBUG_RETURN(a1)
  49. #  define DB_VOID_RETURN              DBUG_VOID_RETURN
  50. #  define DB_EXECUTE(keyword, a1)     DBUG_EXECUTE(keyword,a1)
  51. #  define DB_PRINT(keyword,arglist)   DBUG_PRINT(keyword,arglist)
  52. #  define DB_PUSH(a1)                 DBUG_PUSH(a1)
  53. #  define DB_POP()                    DBUG_POP()
  54. #  define DB_PROCESS(a1)              DBUG_PROCESS(a1)
  55. #  define DB_FILE(file)               DBUG_FILE(file)
  56. #  define DB_SETJMP                   DBUG_SETJMP
  57. #  define DB_LONGJMP                  DBUG_LONGJMP
  58.  
  59. #else
  60.  
  61. #  define DB_ENTER(a1)
  62. #  define DB_RETURN(a1)               return (a1)
  63. #  define DB_VOID_RETURN              return
  64. #  define DB_EXECUTE(keyword, a1)
  65. #  define DB_PRINT(keyword,arglist)
  66. #  define DB_PUSH(a1)
  67. #  define DB_POP()
  68. #  define DB_PROCESS(a1)
  69. #  define DB_FILE(file)
  70. #  define DB_SETJMP                   setjmp
  71. #  define DB_LONGJMP                  longjmp
  72.  
  73. #endif
  74. #endif
  75.  
  76.