mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 14:04:56 +01:00
api test (priority automated)
This commit is contained in:
parent
53ace542c1
commit
1459adadeb
2 changed files with 14 additions and 7 deletions
|
@ -130,13 +130,13 @@ pub fn codegen(
|
|||
}
|
||||
}
|
||||
|
||||
#[doc = #manual]
|
||||
impl<'a> __rtic_internal_fooSharedResources<'a> {
|
||||
#[inline(always)]
|
||||
pub unsafe fn priority(&self) -> &rtic::export::Priority {
|
||||
self.priority
|
||||
}
|
||||
}
|
||||
// #[doc = #manual]
|
||||
// impl<'a> __rtic_internal_fooSharedResources<'a> {
|
||||
// #[inline(always)]
|
||||
// pub unsafe fn priority(&self) -> &rtic::export::Priority {
|
||||
// self.priority
|
||||
// }
|
||||
// }
|
||||
|
||||
#[doc = #manual]
|
||||
impl<'a> rtic::Mutex for __rtic_internal_fooSharedResources<'a> {
|
||||
|
|
|
@ -111,6 +111,13 @@ pub fn codegen(ctxt: Context, needs_lt: &mut bool, app: &App) -> (TokenStream2,
|
|||
#(#fields,)*
|
||||
priority: &'a rtic::export::Priority,
|
||||
}
|
||||
|
||||
impl<#lt>#ident<#lt> {
|
||||
#[inline(always)]
|
||||
pub unsafe fn priority(&self) -> &rtic::export::Priority {
|
||||
self.priority
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
let arg = if ctxt.is_init() {
|
||||
|
|
Loading…
Reference in a new issue