Skip to content

Commit

Permalink
crates/sel4/sys: Add compile-time assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
nspin committed Sep 8, 2023
1 parent a89ddab commit f1cc9f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/sel4/sys/src/syscalls/helpers/arch/x86_64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ use sel4_config::sel4_cfg;
use crate::{seL4_Word, seL4_MessageInfo};
use super::sys_id_to_word;

#[sel4_cfg(not(SYSCALL))]
compile_error!("unsupported configuration");

pub fn sys_send(
sys: c_int,
dest: seL4_Word,
Expand Down

0 comments on commit f1cc9f3

Please sign in to comment.