2023-12-17 03:29:08 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#if defined(_WIN32) || defined(_WIN64)
|
2023-12-17 15:56:13 -08:00
|
|
|
#define EHS_OS_WINDOWS
|
|
|
|
#define EHS_FILE __FILE__
|
|
|
|
#define EHS_FUNC __FUNCTION__
|
|
|
|
#define EHS_LINE __LINE__
|
2023-12-17 03:29:08 -08:00
|
|
|
|
|
|
|
#ifndef NOMINMAX
|
|
|
|
#define NOMINMAX
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef WIN32_LEAN_AND_MEAN
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <Windows.h>
|
|
|
|
|
|
|
|
typedef void* Handle;
|
|
|
|
#elif defined(__linux__)
|
2023-12-17 15:56:13 -08:00
|
|
|
#define EHS_OS_LINUX
|
|
|
|
#define EHS_FILE __FILE__
|
|
|
|
#define EHS_FUNC __FUNCTION__
|
|
|
|
#define EHS_LINE __LINE__
|
2023-12-17 03:29:08 -08:00
|
|
|
|
|
|
|
typedef int Handle;
|
|
|
|
#endif
|