Use application callback instead of standard error stream for logging

This commit is contained in:
Iwan Timmer
2017-06-11 18:02:39 +02:00
parent 99cfae7acc
commit 10e0acba4a
3 changed files with 10 additions and 13 deletions

View File

@@ -35,20 +35,8 @@
#include <stdio.h>
#include "Limelight.h"
#if defined(LC_WINDOWS)
void LimelogWindows(char* Format, ...);
#define Limelog(s, ...) \
LimelogWindows(s, ##__VA_ARGS__)
#elif defined(__vita__)
#define Limelog sceClibPrintf
#elif defined(LC_ANDROID)
#include <android/log.h>
#define Limelog(s, ...) \
__android_log_print(ANDROID_LOG_INFO, "moonlight-common-c", s, ##__VA_ARGS__)
#else
#define Limelog(s, ...) \
fprintf(stderr, s, ##__VA_ARGS__)
#endif
ListenerCallbacks.logMessage(s, ##__VA_ARGS__)
#if defined(LC_WINDOWS)
#include <crtdbg.h>