2009-01-13 04:40:13 +05:00
|
|
|
#ifndef FILE_MYDEFS
|
|
|
|
#define FILE_MYDEFS
|
|
|
|
|
|
|
|
/**************************************************************************/
|
|
|
|
/* File: mydefs.hh */
|
|
|
|
/* Author: Joachim Schoeberl */
|
|
|
|
/* Date: 10. Mar. 98 */
|
|
|
|
/**************************************************************************/
|
|
|
|
|
|
|
|
/*
|
|
|
|
defines for graphics, testmodes, ...
|
|
|
|
*/
|
|
|
|
|
2021-02-18 15:37:05 +05:00
|
|
|
#include <core/ngcore.hpp>
|
2018-02-02 14:49:58 +05:00
|
|
|
#define PACKAGE_VERSION "6.2-dev"
|
2009-01-13 04:40:13 +05:00
|
|
|
|
|
|
|
// #define DEBUG
|
|
|
|
|
2021-02-18 15:37:05 +05:00
|
|
|
#if defined(NGINTERFACE_EXPORTS) || ( defined(WIN32) && (defined(NGLIB_EXPORTS) || defined(nglib_EXPORTS)) )
|
|
|
|
#define DLL_HEADER NGCORE_API_EXPORT
|
2009-04-17 10:07:42 +06:00
|
|
|
#else
|
2021-02-18 15:37:05 +05:00
|
|
|
#define DLL_HEADER NGCORE_API_IMPORT
|
2009-04-17 10:07:42 +06:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2016-01-07 17:37:48 +05:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef __assume
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#define __assume(cond) if (!(cond)) __builtin_unreachable(); else;
|
|
|
|
#else
|
|
|
|
#define __assume(cond)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2017-04-20 19:22:50 +05:00
|
|
|
#ifndef NG_INLINE
|
|
|
|
#ifdef __INTEL_COMPILER
|
|
|
|
#ifdef WIN32
|
|
|
|
#define NG_INLINE __forceinline inline
|
|
|
|
#else
|
|
|
|
#define NG_INLINE __forceinline inline
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#ifdef __GNUC__
|
|
|
|
#define NG_INLINE __attribute__ ((__always_inline__)) inline
|
|
|
|
#define VLA
|
|
|
|
#else
|
|
|
|
#define NG_INLINE inline
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
2016-01-07 17:37:48 +05:00
|
|
|
|
|
|
|
|
2016-12-11 16:12:05 +05:00
|
|
|
// #define BASE0
|
|
|
|
// #define DEBUG
|
2016-01-07 17:37:48 +05:00
|
|
|
|
|
|
|
|
2009-01-13 04:40:13 +05:00
|
|
|
#define noDEMOVERSION
|
|
|
|
#define noDEVELOP
|
|
|
|
#define noSTEP
|
|
|
|
#define noSOLIDGEOM
|
|
|
|
|
|
|
|
#define noDEMOAPP
|
|
|
|
#define noMODELLER
|
|
|
|
|
|
|
|
#define noSTAT_STREAM
|
|
|
|
#define noLOG_STREAM
|
|
|
|
|
|
|
|
#endif
|