Skip to content

Commit

Permalink
Protect Android code behind android define.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlohr committed Sep 2, 2023
1 parent f57be89 commit 10e4284
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions CNFGAndroid.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ void HandleSuspend();

// For debugging:

#ifdef ANDROID

#include <jni.h>

static inline void PrintClassOfObject( jobject bundle )
{
const struct JNINativeInterface * env = 0;
Expand Down Expand Up @@ -206,15 +210,7 @@ static inline void DumpObjectClassProperties( jobject objToDump )

env->DeleteLocalRef( envptr, mpclass );
}









#endif

#endif

0 comments on commit 10e4284

Please sign in to comment.