Generated on for Gecode by doxygen 1.17.0
support.hh
Go to the documentation of this file.
1/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
2/*
3 * Main authors:
4 * Christian Schulte <schulte@gecode.dev>
5 *
6 * Contributing authors:
7 * Mikael Zayenz Lagerkvist <lagerkvist@gecode.dev>
8 *
9 * Copyright:
10 * Christian Schulte, 2007
11 * Mikael Zayenz Lagerkvist, 2026
12 *
13 * This file is part of Gecode, the generic constraint
14 * development environment:
15 * http://www.gecode.dev
16 *
17 * Permission is hereby granted, free of charge, to any person obtaining
18 * a copy of this software and associated documentation files (the
19 * "Software"), to deal in the Software without restriction, including
20 * without limitation the rights to use, copy, modify, merge, publish,
21 * distribute, sublicense, and/or sell copies of the Software, and to
22 * permit persons to whom the Software is furnished to do so, subject to
23 * the following conditions:
24 *
25 * The above copyright notice and this permission notice shall be
26 * included in all copies or substantial portions of the Software.
27 *
28 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
29 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
30 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
31 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
32 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
33 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
34 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
35 *
36 */
37
38#ifndef GECODE_SUPPORT_HH
39#define GECODE_SUPPORT_HH
40
41#include <cassert>
42
43#include <gecode/support/config.hpp>
44
45/*
46 * Linking and compiler workarounds
47 *
48 */
49#if !defined(GECODE_STATIC_LIBS) && \
50 (defined(__CYGWIN__) || defined(__MINGW32__) || defined(_MSC_VER))
51
58#define GECODE_MSC_VIRTUAL virtual
59
60#ifdef GECODE_BUILD_SUPPORT
61#define GECODE_SUPPORT_EXPORT __declspec( dllexport )
62#else
63#define GECODE_SUPPORT_EXPORT __declspec( dllimport )
64#endif
65#define GECODE_VTABLE_EXPORT
66
67#else
68
69#define GECODE_MSC_VIRTUAL
70
71#ifdef GECODE_GCC_HAS_CLASS_VISIBILITY
72#define GECODE_SUPPORT_EXPORT __attribute__ ((visibility("default")))
73#define GECODE_VTABLE_EXPORT __attribute__ ((visibility("default")))
74#else
75#define GECODE_SUPPORT_EXPORT
76#define GECODE_VTABLE_EXPORT
77#endif
78
79#endif
80
81// Configure auto-linking
82#ifndef GECODE_BUILD_SUPPORT
83#define GECODE_LIBRARY_NAME "Support"
85#endif
86
87/*
88 * Basic support needed everywhere
89 *
90 */
91
94#ifdef GECODE_HAS_FAULT_INJECTION
96#endif
104
105/*
106 * Common datastructures and algorithms
107 *
108 */
109
120
121
122/*
123 * Operating system support
124 *
125 */
126
128
130
133
134/*
135 * Miscellaneous
136 *
137 */
138
140
141#endif
142
143// STATISTICS: support-any