This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use raylib::prelude::*; | |
| use std::ops::{Deref, DerefMut}; | |
| #[allow(static_mut_refs)] | |
| pub(crate) mod thread_assert { | |
| static mut THREAD_ID: Option<std::thread::ThreadId> = None; | |
| pub fn set_thread_id() { | |
| unsafe { | |
| THREAD_ID = Some(std::thread::current().id()); |
OlderNewer