Working on backing files.
Also started a sketches project to illustrate quick ideas.
This commit is contained in:
12
Defs.h
12
Defs.h
@@ -28,8 +28,13 @@
|
||||
#include <string>
|
||||
|
||||
|
||||
#define STRINGIFY(x) #x
|
||||
#define TOSTRING(x) STRINGIFY(x)
|
||||
|
||||
|
||||
typedef std::optional<std::string> OptString;
|
||||
|
||||
|
||||
template<typename T>
|
||||
T Min(T a, T b) { return a > b ? b : a; }
|
||||
template size_t Min<size_t>(size_t a, size_t b);
|
||||
@@ -39,4 +44,11 @@ T Max(T a, T b) { return a > b ? a : b; }
|
||||
template size_t Max(size_t a, size_t b);
|
||||
|
||||
|
||||
/// \todo Consider abstracting platforms to a separate subsystem.
|
||||
static const std::string PlatformLinux("Linux");
|
||||
static const std::string PlatformApple("Darwin");
|
||||
static const std::string PlatformWindows("Windows");
|
||||
static const std::string PlatformCurrent(TOSTRING(KGE_PLATFORM));
|
||||
|
||||
|
||||
#endif // KEPP__DEFS_H_
|
||||
|
||||
Reference in New Issue
Block a user