summaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
authorTimo Schwarzer <me@timoschwarzer.com>2020-05-25 21:55:03 +0200
committerTimo Schwarzer <me@timoschwarzer.com>2020-05-25 21:55:03 +0200
commit05b32fc01d7b74c530104682d286e561eb79092d (patch)
treeb3da8e0ceed2844c0dc75d24b4587cf19f91d8a7 /platform/android
parent34d7e30798b4b4fc96dff729cbc2df3410e95e73 (diff)
Add static_assert checks where code assumes VARIANT_ARG_MAX == 5
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/java_godot_lib_jni.cpp1
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);