#pragma once #include #include #include #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include #include #include #else #include #include #include #include #include #include #endif #ifdef _WIN32 # define LC_WINDOWS #else # define LC_POSIX # if defined(__APPLE__) # define LC_DARWIN # endif #endif #include #include "Limelight.h" #if defined(LC_WINDOWS) void LimelogWindows(char* Format, ...); #define Limelog(s, ...) \ LimelogWindows(s, ##__VA_ARGS__) #else #define Limelog(s, ...) \ fprintf(stderr, s, ##__VA_ARGS__) #endif #if defined(LC_WINDOWS) #include #ifdef LC_DEBUG #define LC_ASSERT(x) __analysis_assume(x); \ _ASSERTE(x) #else #define LC_ASSERT(x) #endif #else #ifndef LC_DEBUG #ifndef NDEBUG #define NDEBUG #endif #endif #include #define LC_ASSERT(x) assert(x) #endif int initializePlatform(void); void cleanupPlatform(void); uint64_t PltGetMillis(void);