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