made compatible with no_std
This commit is contained in:
parent
7b5b4a2820
commit
8520cc7e73
|
@ -11,7 +11,7 @@ macro_rules! syscall_enum {
|
||||||
$($Variant=$Value),*
|
$($Variant=$Value),*
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<usize> for SysCall {
|
impl core::convert::From<usize> for SysCall {
|
||||||
fn from(n: usize) -> Self {
|
fn from(n: usize) -> Self {
|
||||||
match n {
|
match n {
|
||||||
$($Value => Self::$Variant),*,
|
$($Value => Self::$Variant),*,
|
||||||
|
|
Reference in a new issue