| #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 | void throwException(JNIEnv *env, char *format, ...); |
| 28 |
| 29 | #endif |
| 30 |