MIP_SDK
v3.0.0
MicroStrain Communications Library for embedded systems
src
cpp
microstrain
common
platform.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
microstrain/common/platform.h
>
4
5
#ifdef __has_include
6
#if __has_include(<version>)
7
#include <version>
8
#endif
9
#endif
10
11
#if __cpp_inline_variables >= 201606L
12
#define INLINE_VAR inline
13
#else
14
#define INLINE_VAR
15
#endif
16
17
18
#if __cpp_if_constexpr >= 201606L
19
#define IF_CONSTEXPR if constexpr
20
#else
21
#define IF_CONSTEXPR if
22
#endif
23
24
#if __cpp_lib_optional >= 201606L
25
#define MICROSTRAIN_HAS_OPTIONAL
26
#endif
platform.h
Generated by
1.8.17