Support Class Library
A set of tools providing classes and utility
include
scl
detect
platform
linux.h
Go to the documentation of this file.
1
#pragma once
2
#include <
scl/detect/platform/apple.h
>
3
#include <
scl/detect/platform/android.h
>
4
9
#if defined(__linux__)
10
#define SCL_PLATFORM_LINUX ((!SCL_PLATFORM_APPLE) && (!SCL_PLATFORM_ANDROID))
11
#else
12
#define SCL_PLATFORM_LINUX false
13
#endif
14
15
namespace
scl
{
16
namespace
detect{
17
namespace
platform{
22
constexpr
bool
linux
=
SCL_PLATFORM_LINUX
;
23
}
24
}
25
}
scl
Global namespace of the SCL.
Definition:
alias.hpp:3
android.h
apple.h
scl::detect::platform::linux
constexpr bool linux
Checks whether or not the platform is a Linux platform (that is neither android or apple) ...
Definition:
linux.h:22
SCL_PLATFORM_LINUX
#define SCL_PLATFORM_LINUX
Macro that detects whether or not the platform is a Linux platform (that is neither android or apple)...
Definition:
linux.h:12
Generated by
1.8.13