×
☰
Toggle navigation
SCIP Optimization Suite
SCIP
SoPlex
ZIMPL
UG
GCG
Documentation
SCIP 9.2.0
SCIP 8.1.0
SCIP 7.0.3
SCIP 6.0.2
SCIP 5.0.1
SCIP 4.0.1
SCIP 3.2.1
SCIP
Solving Constraint Integer Programs
tclique_def.h
Go to the documentation of this file.
1
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2
/* */
3
/* This file is part of the program */
4
/* TCLIQUE --- Algorithm for Maximum Cliques */
5
/* */
6
/* Copyright (C) 1996-2022 Konrad-Zuse-Zentrum */
7
/* fuer Informationstechnik Berlin */
8
/* */
9
/* TCLIQUE is distributed under the terms of the ZIB Academic License. */
10
/* */
11
/* You should have received a copy of the ZIB Academic License */
12
/* along with TCLIQUE; see the file COPYING. */
13
/* */
14
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15
16
/**@file tclique_def.h
17
* @brief tclique defines
18
* @author Tobias Achterberg
19
*/
20
21
/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
22
23
#ifndef __TCLIQUE_DEF_H__
24
#define __TCLIQUE_DEF_H__
25
26
/*
27
* include build configuration flags
28
*/
29
#ifndef NO_CONFIG_HEADER
30
#include "scip/config.h"
31
#include "scip/scip_export.h"
32
#endif
33
34
#ifdef WITH_SCIPDEF
35
#include "
scip/def.h
"
36
#endif
37
38
#ifdef __cplusplus
39
extern
"C"
{
40
#endif
41
42
#ifndef ALLOC_ABORT
43
#define ALLOC_ABORT(x) do \
44
{ \
45
if( NULL == (x) ) \
46
{ \
47
printf("[%s:%d] No memory in function call\n", __FILE__, __LINE__); \
48
abort(); \
49
} \
50
} \
51
while( FALSE )
52
#endif
53
54
#ifndef ALLOC_FALSE
55
#define ALLOC_FALSE(x) do \
56
{ \
57
if( NULL == (x) ) \
58
{ \
59
printf("[%s:%d] No memory in function call\n", __FILE__, __LINE__); \
60
return FALSE; \
61
} \
62
} \
63
while( FALSE )
64
#endif
65
66
#ifndef debug
67
#ifdef TCLIQUE_DEBUG
68
#define debug(x) x
69
#define debugMessage printf("[%s:%d] debug: ", __FILE__, __LINE__); printf
70
#define debugPrintf printf
71
#else
72
#define debug(x)
/**/
73
#define debugMessage while( FALSE ) printf
74
#define debugPrintf while( FALSE ) printf
75
#endif
76
#endif
77
78
#ifndef infoMessage
79
#define infoMessage printf
80
#endif
81
82
#ifndef MAX
83
#define MAX(x,y) ((x) >= (y) ? (x) : (y))
84
#endif
85
86
#ifdef __cplusplus
87
}
88
#endif
89
90
#endif
def.h
common defines and data types used in all packages of SCIP