Repo created
This commit is contained in:
parent
81b91f4139
commit
f8c34fa5ee
22732 changed files with 4815320 additions and 2 deletions
19
TMessagesProj/jni/NativeLoader.cpp
Normal file
19
TMessagesProj/jni/NativeLoader.cpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#include <jni.h>
|
||||
|
||||
/*static google_breakpad::ExceptionHandler *exceptionHandler;
|
||||
|
||||
bool callback(const google_breakpad::MinidumpDescriptor &descriptor, void *context, bool succeeded) {
|
||||
printf("dump path: %s\n", descriptor.path());
|
||||
return succeeded;
|
||||
}*/
|
||||
|
||||
extern "C" {
|
||||
JNIEXPORT void Java_org_telegram_messenger_NativeLoader_init(JNIEnv* env, jobject obj, jstring filepath, jboolean enable) {
|
||||
return;
|
||||
/*if (enable) {
|
||||
const char *path = env->GetStringUTFChars(filepath, 0);
|
||||
google_breakpad::MinidumpDescriptor descriptor(path);
|
||||
exceptionHandler = new google_breakpad::ExceptionHandler(descriptor, NULL, callback, NULL, true, -1);
|
||||
}*/
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue