| 6 | #define LOG_TAG "tmessages_native" |
| 7 | #define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__) |
| 8 | #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__) |
| 9 | #define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__) |
| 10 | #define LOGV(...) __android_log_print(ANDROID_LOG_VERBOSE, LOG_TAG, __VA_ARGS__) |
| 11 |
| 12 | #ifndef max |
| 13 | #define max(x, y) ((x) > (y)) ? (x) : (y) |
| 14 | #endif |
| 15 | #ifndef min |
| 16 | #define min(x, y) ((x) < (y)) ? (x) : (y) |
| 17 | #endif |
| 18 |
| 19 | #endif |
| 20 |