Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / dmake / db.h
bloba640dfaee7a4a2cfc79ec1add2e08383e468e14d
1 /* RCS $Id: db.h,v 1.1.1.1 2000-09-22 15:33:25 hr Exp $
2 --
3 -- SYNOPSIS
4 -- Front end to DBUG macros.
5 --
6 -- DESCRIPTION
7 -- This is a front end to Fred Fish's DBUG macros. The intent was
8 -- to provide an interface so that if you don't have the DBUG code
9 -- you can still compile dmake, by undefining DBUG, if you do have
10 -- the code then you can use Fred Fish's DBUG package. Originally
11 -- the DBUG stuff was copyrighted, it is now in the public domain
12 -- so the need for this is not as apparent.
14 -- AUTHOR
15 -- Dennis Vadura, dvadura@dmake.wticorp.com
17 -- WWW
18 -- http://dmake.wticorp.com/
20 -- COPYRIGHT
21 -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved.
23 -- This program is NOT free software; you can redistribute it and/or
24 -- modify it under the terms of the Software License Agreement Provided
25 -- in the file <distribution-root>/readme/license.txt.
27 -- LOG
28 -- Use cvs log to obtain detailed change logs.
31 #ifndef DB_h
32 #define DB_h
34 #ifdef DBUG
36 # include "dbug.h"
38 # define DB_ENTER(a1) DBUG_ENTER(a1)
39 # define DB_RETURN(a1) DBUG_RETURN(a1)
40 # define DB_VOID_RETURN DBUG_VOID_RETURN
41 # define DB_EXECUTE(keyword, a1) DBUG_EXECUTE(keyword,a1)
42 # define DB_PRINT(keyword,arglist) DBUG_PRINT(keyword,arglist)
43 # define DB_PUSH(a1) DBUG_PUSH(a1)
44 # define DB_POP() DBUG_POP()
45 # define DB_PROCESS(a1) DBUG_PROCESS(a1)
46 # define DB_FILE(file) DBUG_FILE(file)
47 # define DB_SETJMP DBUG_SETJMP
48 # define DB_LONGJMP DBUG_LONGJMP
50 #else
52 # define DB_ENTER(a1)
53 # define DB_RETURN(a1) return (a1)
54 # define DB_VOID_RETURN return
55 # define DB_EXECUTE(keyword, a1)
56 # define DB_PRINT(keyword,arglist)
57 # define DB_PUSH(a1)
58 # define DB_POP()
59 # define DB_PROCESS(a1)
60 # define DB_FILE(file)
61 # define DB_SETJMP setjmp
62 # define DB_LONGJMP longjmp
64 #endif
65 #endif