object name to snake case
Some checks failed
Rust / build-gnu-apt (pull_request) Failing after 1m44s
Rust / build-size-gnu-unstable (pull_request) Failing after 41s

This commit is contained in:
Vinzenz Schroeter 2025-06-28 18:38:20 +02:00
parent c702d832f4
commit 8c40d959e8
2 changed files with 656 additions and 638 deletions

File diff suppressed because it is too large Load diff

View file

@ -46,7 +46,7 @@ macro_rules! wrap_method {
$impl:block; $impl:block;
) => { ) => {
paste::paste! { paste::paste! {
$crate::macros::wrap_functions!([< $object_type:lower >]; $crate::macros::wrap_functions!(associate $object_type;
$(#[$meta])* $(#[$meta])*
fn $function( fn $function(
$instance: $ref_or_mut ::core::ptr::NonNull<$object_type> $instance: $ref_or_mut ::core::ptr::NonNull<$object_type>
@ -246,7 +246,7 @@ macro_rules! wrap_functions {
)+ )+
) => { ) => {
::paste::paste! { ::paste::paste! {
$crate::macros::wrap_functions!{[< $object_type:lower >]; $crate::macros::wrap_functions!{[< $object_type:snake >];
$( $(
$(#[$meta])+ $(#[$meta])+
fn $function($($param_name: $param_modifier $param_type),*) $(-> $return_modifier $return_type)? fn $function($($param_name: $param_modifier $param_type),*) $(-> $return_modifier $return_type)?