enshwick 1.0.0-alpha.11

The Enshwick Loader's modding API for Enshrouded: the one crate mods are written against
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! The check that a mod keeps unwinding on panic.

/// Refuses to compile a mod built without `panic = "unwind"`: the loader
/// catches a mod's panics to turn off only that mod, which an aborting mod
/// would turn into a crash of the game.
#[doc(hidden)]
#[macro_export]
macro_rules! __require_unwind {
    () => {
        #[cfg(not(panic = "unwind"))]
        ::core::compile_error!(
            "an Enshwick mod must be built with `panic = \"unwind\"`: remove `panic = \"abort\"` from its Cargo profile"
        );
    };
}