tildefriends/src/log.h

13 lines
315 B
C

#pragma once
#if defined(__ANDROID__)
#include <android/log.h>
#define tf_printf(...) __android_log_print(ANDROID_LOG_INFO, "tildefriends", __VA_ARGS__)
#elif defined(__APPLE__)
#include <os/log.h>
#define tf_printf(...) os_log(OS_LOG_DEFAULT, __VA_ARGS__)
#else
#include <stdio.h>
#define tf_printf printf
#endif