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

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;