xcode demo app UI updates

This commit is contained in:
Joseph Henry
2016-07-18 15:52:02 -07:00
parent e301b9c654
commit 58c2ed2299
6 changed files with 161 additions and 102 deletions

View File

@@ -98,20 +98,20 @@ void dwr(int level, const char *fmt, ... )
#elif defined(__APPLE__)
pid_t tid = pthread_mach_thread_np(pthread_self());
#endif
//#if defined(SDK_DEBUG_LOG_TO_FILE)
//if(!debug_logfile) { // Try to get logfile from env
// debug_logfile = getenv("ZT_SDK_LOGFILE");
//}
#if defined(SDK_DEBUG_LOG_TO_FILE)
if(!debug_logfile) { // Try to get logfile from env
debug_logfile = getenv("ZT_SDK_LOGFILE");
}
//if(debug_logfile) {
FILE *file = fopen("/Users/Joseph/code/unity.log","a");
if(debug_logfile) {
FILE *file = fopen(debug_logfile,"a");
fprintf(file, "%s [tid=%7d] ", timestring, tid);
vfprintf(file, fmt, ap);
fclose(file);
va_end(ap);
//}
}
//#endif
#endif
va_start(ap, fmt);
fprintf(stderr, "%s [tid=%7d] ", timestring, tid);
vfprintf(stderr, fmt, ap);