diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2020-05-16 13:58:14 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2020-05-16 13:58:42 +0300 |
commit | 48d133a5fd6bf8b9a3136b2d029713c84a205ea2 (patch) | |
tree | e4764e20361d37d9c61c2b2f822fe802406f4b99 /modules/gdnative/gdnative/node_path.cpp | |
parent | 988dd09047aab9f33b172cfb140d4081885c7083 (diff) | |
download | redot-engine-48d133a5fd6bf8b9a3136b2d029713c84a205ea2.tar.gz |
Fix GDNative wrapper type sizes (RID, Variant, Packed*Array), add size checking static asserts.
Diffstat (limited to 'modules/gdnative/gdnative/node_path.cpp')
-rw-r--r-- | modules/gdnative/gdnative/node_path.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdnative/gdnative/node_path.cpp b/modules/gdnative/gdnative/node_path.cpp index 93f43835c8..88ed650ebe 100644 --- a/modules/gdnative/gdnative/node_path.cpp +++ b/modules/gdnative/gdnative/node_path.cpp @@ -37,6 +37,8 @@ extern "C" { #endif +static_assert(sizeof(godot_node_path) == sizeof(NodePath), "NodePath size mismatch"); + void GDAPI godot_node_path_new(godot_node_path *r_dest, const godot_string *p_from) { NodePath *dest = (NodePath *)r_dest; const String *from = (const String *)p_from; |