Fix GDNative Variant type size on 32-bit platforms, add size checking static asserts. [3.2]

This commit is contained in:
bruvzg
2020-05-17 16:11:49 +03:00
parent a2f32c970d
commit d255cc9e4d
19 changed files with 45 additions and 1 deletions
+2
View File
@@ -38,6 +38,8 @@
extern "C" {
#endif
static_assert(sizeof(godot_rid) == sizeof(RID), "RID size mismatch");
void GDAPI godot_rid_new(godot_rid *r_dest) {
RID *dest = (RID *)r_dest;
memnew_placement(dest, RID);