| #include <jni.h> |
| 6 |
| 7 | #define LOG_TAG "tmessages_native" |
| 8 | #ifndef LOG_DISABLED |
| 9 | #define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__) |
| 10 | #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__) |
| 11 | #define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__) |
| 12 | #define LOGV(...) __android_log_print(ANDROID_LOG_VERBOSE, LOG_TAG, __VA_ARGS__) |
| 13 | #else |
| 14 | #define LOGI(...) |
| 15 | #define LOGD(...) |
| 16 | #define LOGE(...) |
| 17 | #define LOGV(...) |
| 18 | #endif |
| 19 |
| 20 | #ifndef MAX |
| 21 | #define MAX(x, y) ((x) > (y)) ? (x) : (y) |
| 22 | #endif |
| 23 | #ifndef MIN |
| 24 | #define MIN(x, y) ((x) < (y)) ? (x) : (y) |
| 25 | #endif |
| 26 |
| 27 | #endif |
| 28 |