#ifndef BASE_ANDROID_JNI_GENERATOR_JNI_GENERATOR_HELPER_H_
#define BASE_ANDROID_JNI_GENERATOR_JNI_GENERATOR_HELPER_H_
#include <jni.h>
#include "base/android/jni_android.h"
#include "base/android/scoped_java_ref.h"
#include "base/basictypes.h"
#include "base/logging.h"
#define CHECK_NATIVE_PTR(env, jcaller, native_ptr, method_name, ...) \
DCHECK(native_ptr) << method_name;
#define CHECK_CLAZZ(env, jcaller, clazz, ...) \
DCHECK(clazz);
namespace jni_generator {
inline void HandleRegistrationError(JNIEnv* env, jclass clazz,
const char* filename) {
LOG(ERROR) << "RegisterNatives failed in " << filename;
}
inline void CheckException(JNIEnv* env) {
base::android::CheckException(env);
}
}
using base::android::ScopedJavaLocalRef;
#endif