Proper namespacing

The IDE will get confused when #include is in a namespace
This commit is contained in:
topjohnwu
2022-06-15 02:38:56 -07:00
parent db78c20161
commit 9469e79e3c
3 changed files with 10 additions and 1 deletions

View File

@@ -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) {