forked from M-Labs/nac3
nac3artiq: allows kernel function
This commit is contained in:
parent
1d2a32b140
commit
8447aa3000
@ -129,7 +129,8 @@ impl Nac3 {
|
||||
ref decorator_list, ..
|
||||
} => decorator_list.iter().any(|decorator| {
|
||||
if let ast::ExprKind::Name { id, .. } = decorator.node {
|
||||
id.to_string() == "extern" || id.to_string() == "portable"
|
||||
let id = id.to_string();
|
||||
id == "extern" || id == "portable" || id == "kernel"
|
||||
} else {
|
||||
false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user