@@ -2947,8 +2947,8 @@ class MCRunOnMainThreadHelper
29472947 int m_options;
29482948};
29492949
2950- extern " C" JNIEXPORT void JNICALL Java_com_runrev_android_Engine_doNativeNotify (JNIEnv *env, jobject object, int p_callback, int p_context) __attribute__((visibility(" default" )));
2951- JNIEXPORT void JNICALL Java_com_runrev_android_Engine_doNativeNotify (JNIEnv *env, jobject object, int p_callback, int p_context)
2950+ extern " C" JNIEXPORT void JNICALL Java_com_runrev_android_Engine_doNativeNotify (JNIEnv *env, jobject object, jlong p_callback, jlong p_context) __attribute__((visibility(" default" )));
2951+ JNIEXPORT void JNICALL Java_com_runrev_android_Engine_doNativeNotify (JNIEnv *env, jobject object, jlong p_callback, jlong p_context)
29522952{
29532953 co_yield_to_engine_and_call ((co_yield_callback_t )p_callback, (void *)p_context);
29542954}
@@ -2993,8 +2993,8 @@ bool android_run_on_main_thread(void *p_callback, void *p_callback_state, int p_
29932993
29942994 MCRunOnMainThreadHelper *t_helper;
29952995 t_helper = new (nothrow) MCRunOnMainThreadHelper (p_callback, p_callback_state, p_options);
2996- MCAndroidEngineCall (" nativeNotify" , " vii " , nil, MCRunOnMainThreadHelper::DispatchThunk, t_helper);
2997- return true ;
2996+ MCAndroidEngineCall (" nativeNotify" , " vjj " , nil, reinterpret_cast <jlong>( MCRunOnMainThreadHelper::DispatchThunk), reinterpret_cast <jlong>( t_helper) );
2997+ return true ;
29982998 }
29992999
30003000 // Unsafe and immediate -> queue and perform
@@ -3011,8 +3011,8 @@ bool android_run_on_main_thread(void *p_callback, void *p_callback_state, int p_
30113011
30123012 MCRunOnMainThreadHelper *t_helper;
30133013 t_helper = new (nothrow) MCRunOnMainThreadHelper (p_callback, p_callback_state, p_options & ~kMCExternalRunOnMainThreadPost );
3014- MCAndroidEngineCall (" nativeNotify" , " vii " , nil, MCRunOnMainThreadHelper::DispatchThunk, t_helper);
3015- return true ;
3014+ MCAndroidEngineCall (" nativeNotify" , " vjj " , nil, reinterpret_cast <jlong>( MCRunOnMainThreadHelper::DispatchThunk), reinterpret_cast <jlong>( t_helper) );
3015+ return true ;
30163016 }
30173017
30183018 // Safe and immediate -> post to front of event queue
0 commit comments