You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
433 B
21 lines
433 B
#ifndef CORE_H |
|
#define CORE_H |
|
|
|
#include <functional> // std::bind |
|
|
|
#define BIT(x) (1 << x) |
|
|
|
#define NF_BIND_EVENT(f) std::bind(&f, this, std::placeholders::_1) |
|
|
|
// Compiler |
|
#if defined(__clang__) |
|
#define GCC |
|
#elif defined(__INTEL_COMPILER) // Supports some GCC extensions |
|
#define GCC |
|
#elif defined(__GNUG__) || (defined(__GNUC__) && defined(__cplusplus)) |
|
#define GCC |
|
#elif defined(_MSC_VER) |
|
#define MSVC |
|
#endif |
|
|
|
#endif // CORE_H
|
|
|