clang-format the source. Not exactly how I want it, but automated is better than perfect.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4845 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -7,7 +7,13 @@
|
||||
#include <TargetConditionals.h>
|
||||
#if TARGET_OS_IPHONE
|
||||
#include <os/log.h>
|
||||
#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)
|
||||
#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
|
||||
#include <stdio.h>
|
||||
#define tf_printf printf
|
||||
|
Reference in New Issue
Block a user