mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-04-20 23:20:17 +00:00
Fix debugging on WP with a huge hack
This commit is contained in:
committed by
Michelle Bergeron
parent
41fab76461
commit
c04a8e9b4c
@@ -21,6 +21,16 @@
|
||||
# define LC_POSIX
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#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 <crtdbg.h>
|
||||
#define LC_ASSERT _ASSERTE
|
||||
|
||||
Reference in New Issue
Block a user