diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-06-19 23:51:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-19 23:51:22 +0200 |
commit | 35414f1dec5725499f6f6f7e8715ab16440f1f5f (patch) | |
tree | cce3b8c71744116cf65307a099560c4febe747c6 /platform/android/java_godot_lib_jni.cpp | |
parent | 3e0708094276fdb80a6b6929070fecf6fe5858bc (diff) | |
parent | 05b32fc01d7b74c530104682d286e561eb79092d (diff) |
Merge pull request #39053 from timoschwarzer/static-assert-variant-arg-max
Add static_assert checks where code assumes VARIANT_ARG_MAX == 5
Diffstat (limited to 'platform/android/java_godot_lib_jni.cpp')
-rw-r--r-- | platform/android/java_godot_lib_jni.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/android/java_godot_lib_jni.cpp b/platform/android/java_godot_lib_jni.cpp index 1f61c4a805..8667727b1d 100644 --- a/platform/android/java_godot_lib_jni.cpp +++ b/platform/android/java_godot_lib_jni.cpp @@ -435,6 +435,7 @@ JNIEXPORT void JNICALL Java_org_godotengine_godot_GodotLib_calldeferred(JNIEnv * env->DeleteLocalRef(obj); }; + static_assert(VARIANT_ARG_MAX == 5, "This code needs to be updated if VARIANT_ARG_MAX != 5"); obj->call_deferred(str_method, args[0], args[1], args[2], args[3], args[4]); // something env->PopLocalFrame(nullptr); |