ShapeOp  0.1.0
Common.h
Go to the documentation of this file.
1 // This file is part of ShapeOp, a lightweight C++ library
3 // for static and dynamic geometry processing.
4 //
5 // Copyright (C) 2014 Sofien Bouaziz <sofien.bouaziz@gmail.com>
6 // Copyright (C) 2014 LGG EPFL
7 //
8 // This Source Code Form is subject to the terms of the Mozilla
9 // Public License v. 2.0. If a copy of the MPL was not distributed
10 // with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
12 #ifndef COMMON_H
13 #define COMMON_H
14 
17 
19 #ifndef SHAPEOP_SCALAR
20 #define SHAPEOP_SCALAR double
21 #endif
22 
25 
26 #if defined(_WIN32) || defined(_WIN64)
27 #pragma warning( disable : 4251 ) //Disable warnings about templates and std types exposed in the c++ interface.
28 #ifdef SHAPEOP_EXPORT
29 #define SHAPEOP_API __declspec(dllexport)
30 #else
31 #define SHAPEOP_API __declspec(dllimport)
32 #endif
33 #else
34 #define SHAPEOP_API
35 #endif
36 
38 #ifdef SHAPEOP_HEADER_ONLY
39 #define SHAPEOP_INLINE inline
40 #else
41 #define SHAPEOP_INLINE
42 #endif
43 #endif // COMMON_H
45 
SHAPEOP_SCALAR ShapeOpScalar
Defines the scalar type used by the ShapeOp solver (float or double).
Definition: Common.h:23
#define SHAPEOP_SCALAR
Defines the scalar type used by the ShapeOp solver (float or double).
Definition: Common.h:20