Support Class Library
A set of tools providing classes and utility
linux.h
Go to the documentation of this file.
1 #pragma once
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 }
Global namespace of the SCL.
Definition: alias.hpp:3
constexpr bool linux
Checks whether or not the platform is a Linux platform (that is neither android or apple) ...
Definition: linux.h:22
#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