hmod 0.1.1

Reliably discovers the module handle of the current PE image
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// This makes sure the `README.md` contains code that compiles. `cargo test` currently
/// doesn't support checking external artifacts.
///
/// This macro was pulled off of [Run doc tests on README](https://github.com/rust-lang/cargo/issues/383#issuecomment-720873790).
/// It introduces an empty `extern "C"` block, and adds a `#[doc]` attribute that's
/// assigned to an arbitrary string literal.
///
macro_rules! external_doc_test {
    ($x:expr) => {
        #[doc = $x]
        unsafe extern "C" {}
    };
}

external_doc_test!(include_str!("../README.md"));