Work around log obfuscation on iOS.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4561 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
		| @@ -5,7 +5,7 @@ | |||||||
| #define tf_printf(...) __android_log_print(ANDROID_LOG_INFO, "tildefriends", __VA_ARGS__) | #define tf_printf(...) __android_log_print(ANDROID_LOG_INFO, "tildefriends", __VA_ARGS__) | ||||||
| #elif defined(__APPLE__) | #elif defined(__APPLE__) | ||||||
| #include <os/log.h> | #include <os/log.h> | ||||||
| #define tf_printf(...) os_log(OS_LOG_DEFAULT, __VA_ARGS__) | #define tf_printf(...) do { char buffer ## __LINE__[2048]; snprintf(buffer ## __LINE__, sizeof(buffer ## __LINE__), __VA_ARGS__); os_log(OS_LOG_DEFAULT, "%{public}s", buffer ## __LINE__); } while (0) | ||||||
| #else | #else | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| #define tf_printf printf | #define tf_printf printf | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user