Developer Documentation

Deprecation.hh
1 #pragma once
2
3 #include "../Config/DeprecationConfig.hh"
4
5 #if defined(__cplusplus) && (__cplusplus >= 201402L)
6 # define OVM_DEPRECATED(msg) [[deprecated(msg)]]
7 #elif defined(__GNUC__) || defined(__clang__)
8 # define OVM_DEPRECATED(msg) __attribute__((deprecated))
9 #elif defined(_MSC_VER)
10 # define OVM_DEPRECATED(msg) __declspec(deprecated)
11 #else
12 # pragma message("WARNING: You need to implement DEPRECATED for this compiler")
13 # define OVM_DEPRECATED(msg)
14 #endif
15
16