2013-12-20 20:25:49 +01:00
|
|
|
#ifndef log_h
|
|
|
|
#define log_h
|
|
|
|
|
|
|
|
#include <android/log.h>
|
2014-05-17 01:05:49 +02:00
|
|
|
#include <jni.h>
|
2013-12-20 20:25:49 +01:00
|
|
|
|
2016-01-11 18:19:48 +01:00
|
|
|
#define LOG_TAG "tmessages_native"
|
2014-06-15 10:03:43 +02:00
|
|
|
#ifndef LOG_DISABLED
|
2013-12-20 20:25:49 +01:00
|
|
|
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
|
|
|
|
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
|
|
|
|
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
|
|
|
|
#define LOGV(...) __android_log_print(ANDROID_LOG_VERBOSE, LOG_TAG, __VA_ARGS__)
|
2014-06-15 10:03:43 +02:00
|
|
|
#else
|
|
|
|
#define LOGI(...)
|
|
|
|
#define LOGD(...)
|
|
|
|
#define LOGE(...)
|
|
|
|
#define LOGV(...)
|
|
|
|
#endif
|
2013-12-20 20:25:49 +01:00
|
|
|
|
2019-03-03 21:40:48 +01:00
|
|
|
#ifndef MAX
|
|
|
|
#define MAX(x, y) ((x) > (y)) ? (x) : (y)
|
2014-03-27 15:25:53 +01:00
|
|
|
#endif
|
2019-03-03 21:40:48 +01:00
|
|
|
#ifndef MIN
|
|
|
|
#define MIN(x, y) ((x) < (y)) ? (x) : (y)
|
2014-03-27 15:25:53 +01:00
|
|
|
#endif
|
|
|
|
|
2013-12-20 20:25:49 +01:00
|
|
|
#endif
|