mirror of https://github.com/NekoX-Dev/NekoX.git
23 lines
609 B
C
23 lines
609 B
C
#ifndef log_h
|
|
#define log_h
|
|
|
|
#include <android/log.h>
|
|
#include <jni.h>
|
|
|
|
#define LOG_TAG "tmessages_native"
|
|
#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__)
|
|
|
|
#ifndef max
|
|
#define max(x, y) ((x) > (y)) ? (x) : (y)
|
|
#endif
|
|
#ifndef min
|
|
#define min(x, y) ((x) < (y)) ? (x) : (y)
|
|
#endif
|
|
|
|
void throwException(JNIEnv *env, char *format, ...);
|
|
|
|
#endif
|