mirror of
https://github.com/tiennm99/godot.git
synced 2026-07-07 23:07:54 +00:00
Fix GDNative Variant type size on 32-bit platforms, add size checking static asserts. [3.2]
This commit is contained in:
@@ -42,6 +42,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
static_assert(sizeof(godot_array) == sizeof(Array), "Array size mismatch");
|
||||
|
||||
void GDAPI godot_array_new(godot_array *r_dest) {
|
||||
Array *dest = (Array *)r_dest;
|
||||
memnew_placement(dest, Array);
|
||||
|
||||
Reference in New Issue
Block a user