NVIDIA DeepStream SDK API Reference

9.2 Release
9.2/includes/opentelemetry/detail/preprocessor.h
Go to the documentation of this file.
1 // Copyright The OpenTelemetry Authors
2 // SPDX-License-Identifier: Apache-2.0
3 
4 // NOTE - code within detail namespace implements internal details, and not part
5 // of the public interface.
6 
7 #pragma once
8 
9 #define OPENTELEMETRY_STRINGIFY(S) OPENTELEMETRY_STRINGIFY_(S)
10 #define OPENTELEMETRY_STRINGIFY_(S) #S
11 
12 #define OPENTELEMETRY_CONCAT(A, B) OPENTELEMETRY_CONCAT_(A, B)
13 #define OPENTELEMETRY_CONCAT_(A, B) A##B
14 
15 // Import the C++20 feature-test macros
16 #ifdef __has_include
17 # if __has_include(<version>)
18 # include <version>
19 # endif
20 #elif defined(_MSC_VER) && ((defined(__cplusplus) && __cplusplus >= 202002L) || \
21  (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L))
22 # if _MSC_VER >= 1922
23 # include <version>
24 # endif
25 #endif