object name to snake case
All checks were successful
Rust / build-gnu-apt (pull_request) Successful in 2m0s
Rust / build-size-gnu-unstable (pull_request) Successful in 41s

This commit is contained in:
Vinzenz Schroeter 2025-06-28 18:38:20 +02:00
parent c702d832f4
commit 41fbdbf3a3
10 changed files with 712 additions and 694 deletions

View file

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