Skip to content

Commit

Permalink
cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
pazos committed Sep 30, 2024
1 parent 3b4a833 commit 8904504
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
9 changes: 0 additions & 9 deletions jni/jni_helper.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
#ifdef __cplusplus
extern "C" {
#endif

#include <jni.h>
#include "jni_helper.h"

bool has_permission(struct android_app* app) {
Expand Down Expand Up @@ -35,7 +30,3 @@ void crash_report(struct android_app* app) {
vm->DetachCurrentThread();
}
}

#ifdef __cplusplus
}
#endif
11 changes: 11 additions & 0 deletions jni/jni_helper.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
#ifdef __cplusplus
extern "C" {
#else
#include <stdbool.h>
#endif

#include <jni.h>
#include "android_native_app_glue.h"

bool has_permission(struct android_app* app);
void crash_report(struct android_app* app);

#ifdef __cplusplus
}
#endif

0 comments on commit 8904504

Please sign in to comment.