Skip to content

Instantly share code, notes, and snippets.

View Leinnan's full-sized avatar
🦀

MevLyshkin Leinnan

🦀
View GitHub Profile
@Leinnan
Leinnan / raylib_sample.rs
Created August 20, 2025 12:06
Raylib Context sample
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());