summaryrefslogtreecommitdiffstats
path: root/modules/gdnative/gdnative/vector2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gdnative/gdnative/vector2.cpp')
-rw-r--r--modules/gdnative/gdnative/vector2.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdnative/gdnative/vector2.cpp b/modules/gdnative/gdnative/vector2.cpp
index b6c3569f42..72c3c0ec35 100644
--- a/modules/gdnative/gdnative/vector2.cpp
+++ b/modules/gdnative/gdnative/vector2.cpp
@@ -37,6 +37,8 @@
extern "C" {
#endif
+static_assert(sizeof(godot_vector2) == sizeof(Vector2), "Vector2 size mismatch");
+
void GDAPI godot_vector2_new(godot_vector2 *r_dest, const godot_real p_x, const godot_real p_y) {
Vector2 *dest = (Vector2 *)r_dest;
*dest = Vector2(p_x, p_y);