Amesos Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
amesos_btf_internal.h
Go to the documentation of this file.
1 /* ========================================================================== */
2 /* === btf_internal include file ============================================ */
3 /* ========================================================================== */
4 
5 #ifndef AMESOS_BTF_INTERNAL_H
6 #define AMESOS_BTF_INTERNAL_H
7 
8 /*
9  * Copyright (c) 2004-2007. Tim Davis, University of Florida,
10  * with support from Sandia National Laboratories. All Rights Reserved.
11  */
12 
13 /* Not to be included in any user program. */
14 
15 #ifdef DLONG
16 #define Int UF_long
17 #define Int_id UF_long_id
18 #define BTF(name) amesos_btf_l_ ## name
19 #else
20 #define Int int
21 #define Int_id "%d"
22 #define BTF(name) amesos_btf_ ## name
23 #endif
24 
25 /* ========================================================================== */
26 /* make sure debugging and printing is turned off */
27 
28 #ifndef NDEBUG
29 #define NDEBUG
30 #endif
31 #ifndef NPRINT
32 #define NPRINT
33 #endif
34 
35 /* To enable debugging and assertions, uncomment this line:
36  #undef NDEBUG
37 */
38 /* To enable diagnostic printing, uncomment this line:
39  #undef NPRINT
40 */
41 
42 /* ========================================================================== */
43 
44 #include <stdio.h>
45 #include <assert.h>
46 #define ASSERT(a) assert(a)
47 
48 #undef TRUE
49 #undef FALSE
50 #undef PRINTF
51 #undef MIN
52 
53 #ifndef NPRINT
54 #define PRINTF(s) { printf s ; } ;
55 #else
56 #define PRINTF(s)
57 #endif
58 
59 #define TRUE 1
60 #define FALSE 0
61 #define EMPTY (-1)
62 #define MIN(a,b) (((a) < (b)) ? (a) : (b))
63 
64 #endif