Open CASCADE Technology 7.8.2.dev
|
This file is intended to be the first file included to any Open CASCADE source. It defines platform-specific pre-processor macros necessary for correct compilation of Open CASCADE code. More...
Macros | |
#define | Standard_OVERRIDE |
Should be used in declarations of virtual methods overridden in the derived classes, to cause compilation error in the case if that virtual function disappears or changes its signature in the base class. | |
#define | Standard_DELETE |
Alias for C++11 keyword "=delete" marking methods to be deleted. | |
#define | Standard_FALLTHROUGH |
Should be used in a switch statement immediately before a case label, if code associated with the previous case label may fall through to that next label (i.e. does not end with "break" or "return" etc.). This macro indicates that the fall through is intentional and should not be diagnosed by a compiler that warns on fallthrough. | |
#define | Standard_NODISCARD |
This attribute may appear in a function declaration, enumeration declaration or class declaration. It tells the compiler to issue a warning, if a return value marked by that attribute is discarded. | |
#define | Standard_UNUSED |
Macro for marking variables / functions as possibly unused so that compiler will not emit redundant "unused" warnings. | |
#define | Standard_NOINLINE |
Macro for disallowing function inlining. Expands to "__attribute__((noinline))" on GCC and CLang. | |
#define | Standard_THREADLOCAL |
Define Standard_THREADLOCAL modifier as C++11 thread_local keyword where it is available. | |
#define | Standard_DEPRECATED(theMsg) |
Can be used in declaration of a method or a class to mark it as deprecated. Use of such method or class will cause compiler warning (if supported by compiler and unless disabled). If macro OCCT_NO_DEPRECATED is defined, Standard_DEPRECATED is defined empty. | |
#define | Standard_DISABLE_DEPRECATION_WARNINGS |
Disables warnings on use of deprecated features (see Standard_DEPRECATED), from the current point till appearance of Standard_ENABLE_DEPRECATION_WARNINGS macro. This is useful for sections of code kept for backward compatibility and scheduled for removal. | |
#define | Standard_ENABLE_DEPRECATION_WARNINGS |
Enables warnings on use of deprecated features previously disabled by Standard_DISABLE_DEPRECATION_WARNINGS. | |
#define | Standard_IMPORT extern |
#define | Standard_IMPORTC extern "C" |
#define | Standard_ATOMIC(theType) |
Definition of Standard_ATOMIC for C++11 or visual studio that supports it. Before usage there must be "atomic" included in the following way: #ifdef Standard_HASATOMIC #include <atomic> #endif. | |
#define | Standard_Noexcept throw() |
Definition of Standard_Noexcept: if noexcept is accessible, Standard_Noexcept is "noexcept" and "throw()" otherwise. | |
This file is intended to be the first file included to any Open CASCADE source. It defines platform-specific pre-processor macros necessary for correct compilation of Open CASCADE code.
#define Standard_ATOMIC | ( | theType | ) |
Definition of Standard_ATOMIC for C++11 or visual studio that supports it. Before usage there must be "atomic" included in the following way: #ifdef Standard_HASATOMIC #include <atomic> #endif.
#define Standard_DELETE |
Alias for C++11 keyword "=delete" marking methods to be deleted.
#define Standard_DEPRECATED | ( | theMsg | ) |
Can be used in declaration of a method or a class to mark it as deprecated. Use of such method or class will cause compiler warning (if supported by compiler and unless disabled). If macro OCCT_NO_DEPRECATED is defined, Standard_DEPRECATED is defined empty.
#define Standard_DISABLE_DEPRECATION_WARNINGS |
Disables warnings on use of deprecated features (see Standard_DEPRECATED), from the current point till appearance of Standard_ENABLE_DEPRECATION_WARNINGS macro. This is useful for sections of code kept for backward compatibility and scheduled for removal.
#define Standard_ENABLE_DEPRECATION_WARNINGS |
Enables warnings on use of deprecated features previously disabled by Standard_DISABLE_DEPRECATION_WARNINGS.
#define Standard_FALLTHROUGH |
Should be used in a switch statement immediately before a case label, if code associated with the previous case label may fall through to that next label (i.e. does not end with "break" or "return" etc.). This macro indicates that the fall through is intentional and should not be diagnosed by a compiler that warns on fallthrough.
Expands to C++17 attribute statement "[[fallthrough]];" on compilers that declare support of C++17, or to "__attribute__((fallthrough));" on GCC 7+.
#define Standard_IMPORT extern |
#define Standard_IMPORTC extern "C" |
#define Standard_NODISCARD |
This attribute may appear in a function declaration, enumeration declaration or class declaration. It tells the compiler to issue a warning, if a return value marked by that attribute is discarded.
Expands to C++17 attribute statement "[[nodiscard]]" on compilers that declare support of this attribute, or equivalent attribute on GCC.
#define Standard_Noexcept throw() |
Definition of Standard_Noexcept: if noexcept is accessible, Standard_Noexcept is "noexcept" and "throw()" otherwise.
#define Standard_NOINLINE |
Macro for disallowing function inlining. Expands to "__attribute__((noinline))" on GCC and CLang.
#define Standard_OVERRIDE |
Should be used in declarations of virtual methods overridden in the derived classes, to cause compilation error in the case if that virtual function disappears or changes its signature in the base class.
Expands to C++11 keyword "override" on compilers that are known to support it; empty in other cases.
#define Standard_THREADLOCAL |
Define Standard_THREADLOCAL modifier as C++11 thread_local keyword where it is available.
#define Standard_UNUSED |
Macro for marking variables / functions as possibly unused so that compiler will not emit redundant "unused" warnings.
Expands to "__attribute__((unused))" on GCC and CLang.