#pragma once #include #include #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include #include #else #include #include #endif #ifdef _WIN32 # if WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP # define LC_WINDOWS_PHONE # elif WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP # define LC_WINDOWS # endif #else # define LC_POSIX #endif #include #ifdef LC_WINDOWS_PHONE extern WCHAR DbgBuf[512]; #define Limelog(s, ...) \ swprintf(DbgBuf, sizeof(DbgBuf) / sizeof(WCHAR), L ## s, ##__VA_ARGS__); \ OutputDebugString(DbgBuf) #else #define Limelog printf #endif #if defined(LC_WINDOWS_PHONE) || defined(LC_WINDOWS) #include #define LC_ASSERT _ASSERTE #else #define LC_ASSERT(x) #endif