OpendTect  6.6
Macros
plfdefs.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __islinux__   false
 
#define __ismac__   false
 
#define __iswin__   false
 
#define __little__   1
 
#define __islittle__   true
 
#define mUnusedVar
 
#define mDeprecated(msg)   [[deprecated(msg)]]
 
#define mDeprecatedDef   mDeprecated("See header file for alternatives")
 
#define mDeprecatedObs   mDeprecated("This is obsolete now")
 
#define mStartAllowDeprecatedSection
 
#define mStopAllowDeprecatedSection
 
#define mODRestrict   __restrict__
 
#define NeedFunctionPrototypes   1
 
#define _ANSI_C_SOURCE   1
 

Macro Definition Documentation

◆ __islinux__

#define __islinux__   false

For every platform, one of the following variables must be set by cmake:

    __lux64__, __lux32__    Linux
    __win64__, __win32__    MS Windows
    __mac__                 Apple Mac OSX

Then you get: OS type:

    __unix__        Unix
    __lux__         Linux
    __win__         Windows

Platform:

    __win32__       Windows 32 bits (x86)
    __win64__       Windows 64 bits (AMD)
    __lux32__       Linux 32 bits (x86)
    __lux64__       Linux 64 bits (AMD)
    __mac__         Mac

    __plfsubdir__   String like "win32", "lux32" etc.
    __plfname__     String like "MS Windows 32 bits", "Linux 32 bits"

Compiler type:

    __gnuc__        GNU gcc
    __msvc__        MS Visual C++

Language:

    __cpp__         C++ (else C)

Byte order:

    __little__      little-endian

Always defined:

    __islittle__    'true' if little endian machine, false otherwise
    __islinux__     'true' on Linux, 'false' otherwise
    __is32bits__    'true' on 32 bits platforms, 'false' otherwise
    __ismac__       'true' on Mac, 'false' otherwise
    __iswin__       'true' on Windows, 'false' otherwise

◆ __islittle__

#define __islittle__   true

◆ __ismac__

#define __ismac__   false

◆ __iswin__

#define __iswin__   false

◆ __little__

#define __little__   1

◆ _ANSI_C_SOURCE

#define _ANSI_C_SOURCE   1

◆ mDeprecated

#define mDeprecated (   msg)    [[deprecated(msg)]]

◆ mDeprecatedDef

#define mDeprecatedDef   mDeprecated("See header file for alternatives")

◆ mDeprecatedObs

#define mDeprecatedObs   mDeprecated("This is obsolete now")

◆ mODRestrict

#define mODRestrict   __restrict__

◆ mStartAllowDeprecatedSection

#define mStartAllowDeprecatedSection

◆ mStopAllowDeprecatedSection

#define mStopAllowDeprecatedSection

◆ mUnusedVar

#define mUnusedVar

◆ NeedFunctionPrototypes

#define NeedFunctionPrototypes   1

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2021