mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Add some initial widget functionality (prefs partly working)
This commit is contained in:
@@ -1,47 +1,44 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef __PL_COREDEFS_H__
|
||||
#define __PL_COREDEFS_H__
|
||||
|
||||
#if __cplusplus >= 199711L
|
||||
#define PL_IS_CPP11 1
|
||||
#else
|
||||
#define PL_IS_CPP11 0
|
||||
#endif
|
||||
|
||||
#if PL_IS_CPP11
|
||||
#define PL_DELETED = delete
|
||||
#define PL_STATIC_ASSERT(n) static_assert((n), "Static assert failed: " #n)
|
||||
#else
|
||||
#ifndef nullptr
|
||||
#define nullptr 0
|
||||
#endif
|
||||
|
||||
#ifndef override
|
||||
#define override
|
||||
#endif
|
||||
|
||||
#ifndef final
|
||||
#define final
|
||||
#endif
|
||||
|
||||
#define PL_DELETED
|
||||
|
||||
template<bool TCondition>
|
||||
struct __PL_StaticAssertHelper
|
||||
{
|
||||
};
|
||||
|
||||
template<>
|
||||
struct __PL_StaticAssertHelper<true>
|
||||
{
|
||||
int staticAssertFailed;
|
||||
};
|
||||
|
||||
#define PL_STATIC_ASSERT(n) ((void)(&static_cast<const __PL_StaticAssertHelper<(n)>*>(nullptr)->staticAssertFailed))
|
||||
|
||||
#endif
|
||||
|
||||
static const size_t PL_SYSTEM_MEMORY_ALIGNMENT = 16;
|
||||
|
||||
#endif
|
||||
#pragma once
|
||||
|
||||
#if __cplusplus >= 199711L
|
||||
#define GP_IS_CPP11 1
|
||||
#else
|
||||
#define GP_IS_CPP11 0
|
||||
#endif
|
||||
|
||||
#if GP_IS_CPP11
|
||||
#define GP_DELETED = delete
|
||||
#define GP_STATIC_ASSERT(n) static_assert((n), "Static assert failed: " #n)
|
||||
#else
|
||||
#ifndef nullptr
|
||||
#define nullptr 0
|
||||
#endif
|
||||
|
||||
#ifndef override
|
||||
#define override
|
||||
#endif
|
||||
|
||||
#ifndef final
|
||||
#define final
|
||||
#endif
|
||||
|
||||
#define GP_DELETED
|
||||
|
||||
template<bool TCondition>
|
||||
struct __GpStaticAssertHelper
|
||||
{
|
||||
};
|
||||
|
||||
template<>
|
||||
struct __GpStaticAssertHelper<true>
|
||||
{
|
||||
int staticAssertFailed;
|
||||
};
|
||||
|
||||
#define GP_STATIC_ASSERT(n) ((void)(&static_cast<const __GpStaticAssertHelper<(n)>*>(nullptr)->staticAssertFailed))
|
||||
|
||||
#endif
|
||||
|
||||
static const size_t GP_SYSTEM_MEMORY_ALIGNMENT = 16;
|
||||
|
||||
#define GP_DEBUG_CONFIG 1
|
||||
|
Reference in New Issue
Block a user