mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-14 03:17:54 +00:00
Proper namespacing
The IDE will get confused when #include is in a namespace
This commit is contained in:
@@ -79,6 +79,8 @@ HookContext *g_ctx;
|
||||
const JNINativeInterface *old_functions;
|
||||
JNINativeInterface *new_functions;
|
||||
|
||||
} // namespace
|
||||
|
||||
#define HOOK_JNI(method) \
|
||||
if (methods[i].name == #method##sv) { \
|
||||
int j = 0; \
|
||||
@@ -103,6 +105,8 @@ if (methods[i].name == #method##sv) {
|
||||
|
||||
#undef HOOK_JNI
|
||||
|
||||
namespace {
|
||||
|
||||
jclass gClassRef;
|
||||
jmethodID class_getName;
|
||||
string get_class_name(JNIEnv *env, jclass clazz) {
|
||||
|
||||
Reference in New Issue
Block a user