Fix GDNative wrapper type sizes (RID, Variant, Packed*Array), add size checking static asserts.

This commit is contained in:
bruvzg
2020-05-16 13:58:14 +03:00
parent 988dd09047
commit 48d133a5fd
21 changed files with 53 additions and 9 deletions
+2
View File
@@ -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;