coretilus/
coretilus.rs

1#![doc(
2    html_favicon_url = "https://gitlab.com/ttblt-oss/coretilus/coretilus/-/raw/main/coretilus.png?ref_type=heads&inline=false"
3)]
4#![doc(
5    html_logo_url = "https://gitlab.com/ttblt-oss/coretilus/coretilus/-/raw/main/coretilus.png?ref_type=heads&inline=false"
6)]
7
8pub mod animation;
9pub mod collision;
10pub mod command;
11pub mod commands;
12pub mod coord;
13pub mod engine;
14pub mod frame;
15pub mod sprite;
16pub mod tools;
17pub mod trajectory;
18
19#[cfg(unix)]
20mod signal {
21    const SIGINT: i32 = 2;
22    const SIG_IGN: usize = 1;
23    unsafe extern "C" {
24        unsafe fn signal(sig: i32, handler: usize) -> usize;
25    }
26
27    #[allow(dead_code)]
28    pub fn ignore_sigint() {
29        unsafe {
30            signal(SIGINT, SIG_IGN);
31        }
32    }
33}