Skip to content

Commit e71c622

Browse files
committed
Small oversight in godot_ffi! macro
1 parent f415fe7 commit e71c622

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

godot-ffi/src/godot_ffi.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,13 @@ macro_rules! ffi_methods_one {
133133
};
134134
(SelfPtr $Ptr:ty; $( #[$attr:meta] )? $vis:vis $sys:ident = sys) => {
135135
$( #[$attr] )? $vis
136-
fn sys(&self) -> $Ptr {
136+
fn $sys(&self) -> $Ptr {
137137
self as *const Self as $Ptr
138138
}
139139
};
140140
(SelfPtr $Ptr:ty; $( #[$attr:meta] )? $vis:vis $write_sys:ident = write_sys) => {
141141
$( #[$attr] )? $vis
142-
unsafe fn write_sys(&self, dst: $Ptr) {
142+
unsafe fn $write_sys(&self, dst: $Ptr) {
143143
*(dst as *mut Self) = *self;
144144
}
145145
};

0 commit comments

Comments
 (0)