lv-std 0.0.4

some utils for c and unsafe rust, this is for personal use for now so you can use it but don't expect any regular updates or maintaining
Documentation
1
2
3
4
5
6
7
8
9
10
11
use typenum::assert_type_eq;

#[macro_export]
macro_rules! forbid_void {
    ($other:ty) => {assert!(TypeId::of::<$other>() == TypeId::of::<crate::unsafe_std::ptrs::void::void>(), "void is not allowed in this context")};
}

pub enum PtrState {
    Val,
    Null
}