| #include <jni.h> |
| 6 |
| 7 | #define LOG_TAG "tmessages_native" |
| 8 | #define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__) |
| 9 | #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__) |
| 10 | #define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__) |
| 11 | #define LOGV(...) __android_log_print(ANDROID_LOG_VERBOSE, LOG_TAG, __VA_ARGS__) |
| 12 |
| 13 | #ifndef max |
| 14 | #define max(x, y) ((x) > (y)) ? (x) : (y) |
| 15 | #endif |
| 16 | #ifndef min |
| 17 | #define min(x, y) ((x) < (y)) ? (x) : (y) |
| 18 | #endif |
| 19 |
| 20 | void throwException(JNIEnv *env, char *format, ...); |
| 21 |
| 22 | #endif |
| 23 |