mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-21 06:26:38 +00:00
Fix GDNative Variant type size on 32-bit platforms, add size checking static asserts. [3.2]
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user