@@ -321,12 +321,12 @@ mod export_impls {
321321 use godot_ffi as sys;
322322
323323 macro_rules! impl_property_by_clone {
324- ( $Ty: ty => $variant_type: ident; no_export) => {
324+ ( $Ty: ty => $variant_type: ident, no_export) => {
325325 impl_property_by_clone!( @property $Ty => $variant_type) ;
326326 impl_property_by_clone!( @type_string_hint $Ty, $variant_type) ;
327327 } ;
328328
329- ( $Ty: ty => $variant_type: ident, $type_string_name: ident; no_export ) => {
329+ ( $Ty: ty => $variant_type: ident, no_export ; $type_string_name: ident) => {
330330 impl_property_by_clone!( @property $Ty => $variant_type) ;
331331 impl_property_by_clone!( @type_string_hint $Ty, $type_string_name) ;
332332 } ;
@@ -337,7 +337,7 @@ mod export_impls {
337337 impl_property_by_clone!( @type_string_hint $Ty, $variant_type) ;
338338 } ;
339339
340- ( $Ty: ty => $variant_type: ident, $type_string_name: ident) => {
340+ ( $Ty: ty => $variant_type: ident; $type_string_name: ident) => {
341341 impl_property_by_clone!( @property $Ty => $variant_type) ;
342342 impl_property_by_clone!( @export $Ty) ;
343343 impl_property_by_clone!( @type_string_hint $Ty, $type_string_name) ;
@@ -377,7 +377,7 @@ mod export_impls {
377377 }
378378
379379 // Bounding Boxes
380- impl_property_by_clone ! ( Aabb => Aabb , AABB ) ;
380+ impl_property_by_clone ! ( Aabb => Aabb ; AABB ) ;
381381 impl_property_by_clone ! ( Rect2 => Rect2 ) ;
382382 impl_property_by_clone ! ( Rect2i => Rect2i ) ;
383383
@@ -418,28 +418,28 @@ mod export_impls {
418418 impl_property_by_clone ! ( PackedColorArray => PackedColorArray ) ;
419419
420420 // Primitives
421- impl_property_by_clone ! ( f64 => Float , float) ;
422- impl_property_by_clone ! ( i64 => Int , int) ;
423- impl_property_by_clone ! ( bool => Bool , bool ) ;
421+ impl_property_by_clone ! ( f64 => Float ; float) ;
422+ impl_property_by_clone ! ( i64 => Int ; int) ;
423+ impl_property_by_clone ! ( bool => Bool ; bool ) ;
424424
425425 // Godot uses f64 internally for floats, and if Godot tries to pass an invalid f32 into a rust property
426426 // then the property will just round the value or become inf.
427- impl_property_by_clone ! ( f32 => Float , float) ;
427+ impl_property_by_clone ! ( f32 => Float ; float) ;
428428
429429 // Godot uses i64 internally for integers, and if Godot tries to pass an invalid integer into a property
430430 // accepting one of the below values then rust will panic. In the editor this will appear as the property
431431 // failing to be set to a value and an error printed in the console. During runtime this will crash the
432432 // program and print the panic from rust stating that the property cannot store the value.
433- impl_property_by_clone ! ( i32 => Int , int) ;
434- impl_property_by_clone ! ( i16 => Int , int) ;
435- impl_property_by_clone ! ( i8 => Int , int) ;
436- impl_property_by_clone ! ( u32 => Int , int) ;
437- impl_property_by_clone ! ( u16 => Int , int) ;
438- impl_property_by_clone ! ( u8 => Int , int) ;
433+ impl_property_by_clone ! ( i32 => Int ; int) ;
434+ impl_property_by_clone ! ( i16 => Int ; int) ;
435+ impl_property_by_clone ! ( i8 => Int ; int) ;
436+ impl_property_by_clone ! ( u32 => Int ; int) ;
437+ impl_property_by_clone ! ( u16 => Int ; int) ;
438+ impl_property_by_clone ! ( u8 => Int ; int) ;
439439
440440 // Callables are useless when exported to the editor, so we only need to make them available as
441441 // properties.
442- impl_property_by_clone ! ( Callable => Callable ; no_export) ;
442+ impl_property_by_clone ! ( Callable => Callable , no_export) ;
443443
444444 // RIDs when exported act slightly weird. They are largely read-only, however you can reset them to their
445445 // default value. This seems to me very unintuitive. Since if we are storing an RID we would likely not
@@ -448,7 +448,7 @@ mod export_impls {
448448 //
449449 // Additionally, RIDs aren't persistent, and can sometimes behave a bit weirdly when passed from the
450450 // editor to the runtime.
451- impl_property_by_clone ! ( Rid => Rid , RID ; no_export ) ;
451+ impl_property_by_clone ! ( Rid => Rid , no_export ; RID ) ;
452452
453453 // impl_property_by_clone!(Signal => Signal);
454454}
0 commit comments