Support Class Library
A set of tools providing classes and utility
windows.h
Go to the documentation of this file.
1 #pragma once
2 
7 #if defined(_WIN64) || defined(WIN64)
8  #define SCL_PLATFORM_WIN64 true
9 #else
10  #define SCL_PLATFORM_WIN64 false
11 #endif
12 
17 #if defined(_WIN32) || defined(WIN32)
18  #define SCL_PLATFORM_WIN32 (!SCL_PLATFORM_WIN64)
19 #else
20  #define SCL_PLATFORM_WIN32 false
21 #endif
22 
27 #if defined(SCL_PLATFORM_WIN32) || defined(SCL_PLATFORM_WIN64)
28  #define SCL_PLATFORM_WINDOWS true
29 #else
30  #define SCL_PLATFORM_WINDOWS false
31 #endif
32 
33 namespace scl{
34  namespace detect{
35  namespace platform{
40  constexpr bool win64 = SCL_PLATFORM_WIN64;
41 
46  constexpr bool win32 = SCL_PLATFORM_WIN32;
47 
52  constexpr bool windows = SCL_PLATFORM_WINDOWS;
53  }
54  }
55 }
Global namespace of the SCL.
Definition: alias.hpp:3
#define SCL_PLATFORM_WINDOWS
Macro that detects whether or not the platform is Windows.
Definition: windows.h:28
#define SCL_PLATFORM_WIN32
Macro that detects whether or not the platform is a 32bit Windows.
Definition: windows.h:20
constexpr bool win64
Checks whether or not the platform is a 64bit Windows.
Definition: windows.h:40
constexpr bool windows
Checks whether or not the platform is windows.
Definition: windows.h:52
#define SCL_PLATFORM_WIN64
Macro that detects whether or not the platform is a 64bit Windows.
Definition: windows.h:10
constexpr bool win32
Checks whether or not the platform is a 32bit Windows.
Definition: windows.h:46