2018-12-08 20:10:29 +05:00
|
|
|
#ifndef NETGEN_CORE_NGCORE_API_HPP
|
|
|
|
#define NETGEN_CORE_NGCORE_API_HPP
|
|
|
|
|
|
|
|
#ifdef WIN32
|
|
|
|
#define NGCORE_API_EXPORT __declspec(dllexport)
|
|
|
|
#define NGCORE_API_IMPORT __declspec(dllimport)
|
|
|
|
#else
|
2018-12-28 17:43:15 +05:00
|
|
|
#define NGCORE_API_EXPORT __attribute__((visibility("default")))
|
|
|
|
#define NGCORE_API_IMPORT __attribute__((visibility("default")))
|
2018-12-08 20:10:29 +05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef NGCORE_EXPORTS
|
|
|
|
#define NGCORE_API NGCORE_API_EXPORT
|
|
|
|
#else
|
|
|
|
#define NGCORE_API NGCORE_API_IMPORT
|
|
|
|
#endif
|
|
|
|
|
2019-01-02 22:38:03 +05:00
|
|
|
#ifdef __INTEL_COMPILER
|
|
|
|
#ifdef WIN32
|
|
|
|
#define NETGEN_INLINE __forceinline inline
|
|
|
|
#define NETGEN_LAMBDA_INLINE
|
|
|
|
#else
|
|
|
|
#define NETGEN_INLINE __forceinline inline
|
|
|
|
#define NETGEN_LAMBDA_INLINE __attribute__ ((__always_inline__))
|
|
|
|
#endif
|
2018-12-08 20:10:29 +05:00
|
|
|
#else
|
2019-01-02 22:38:03 +05:00
|
|
|
#ifdef __GNUC__
|
|
|
|
#define NETGEN_INLINE __attribute__ ((__always_inline__)) inline
|
|
|
|
#define NETGEN_LAMBDA_INLINE __attribute__ ((__always_inline__))
|
|
|
|
#define NETGEN_VLA
|
|
|
|
#else
|
|
|
|
#define NETGEN_INLINE inline
|
|
|
|
#define NETGEN_LAMBDA_INLINE
|
|
|
|
#endif
|
2018-12-08 20:10:29 +05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // NETGEN_CORE_NGCORE_API_HPP
|