Support Class Library
A set of tools providing classes and utility
posix.h
Go to the documentation of this file.
1 #pragma once
7 
8 #define SCL_UPLATFORM_ANDROID SCL_PLATFORM_ANDROID
9 #define SCL_UPLATFORM_APPLE SCL_PLATFORM_APPLE
10 #define SCL_UPLATFORM_IOS (SCL_PLATFORM_IOS || SCL_PLATFORM_IOS_SIMULATOR)
11 #define SCL_UPLATFORM_LINUX (SCL_PLATFORM_LINUX || SCL_UPLATFORM_APPLE || SCL_UPLATFORM_ANDROID)
12 #define SCL_UPLATFORM_UNIX (SCL_PLATFORM_UNIX || SCL_UPLATFORM_LINUX)
13 #define SCL_UPLATFORM_POSIX (SCL_PLATFORM_POSIX || SCL_UPLATFORM_UNIX)
14 
15 namespace scl{
16  namespace detect{
17  namespace platform{
18  namespace unified{
19  constexpr bool android = SCL_UPLATFORM_ANDROID;
20  constexpr bool apple = SCL_UPLATFORM_APPLE;
21  constexpr bool ios = SCL_UPLATFORM_IOS;
22  constexpr bool linux = SCL_UPLATFORM_LINUX;
23  constexpr bool unix = SCL_UPLATFORM_UNIX;
24  constexpr bool posix = SCL_UPLATFORM_POSIX;
25  }
26  }
27  }
28 }
Global namespace of the SCL.
Definition: alias.hpp:3
#define SCL_UPLATFORM_UNIX
Definition: posix.h:12
#define SCL_UPLATFORM_IOS
Definition: posix.h:10
constexpr bool ios
Definition: posix.h:21
constexpr bool unix
Definition: posix.h:23
#define SCL_UPLATFORM_ANDROID
Definition: posix.h:8
constexpr bool posix
Definition: posix.h:24
constexpr bool linux
Definition: posix.h:22
constexpr bool apple
Definition: posix.h:20
constexpr bool android
Definition: posix.h:19
#define SCL_UPLATFORM_APPLE
Definition: posix.h:9
#define SCL_UPLATFORM_POSIX
Definition: posix.h:13
#define SCL_UPLATFORM_LINUX
Definition: posix.h:11