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