Browse Source

Add init method to force linking

pull/2/head
AzureMarker 3 years ago
parent
commit
04a89ae72c
No known key found for this signature in database
GPG Key ID: 47A133F3BF9D03D3
  1. 6
      src/lib.rs

6
src/lib.rs

@ -1,6 +1,12 @@ @@ -1,6 +1,12 @@
#![feature(thread_local)]
#![allow(non_camel_case_types)]
/// Call this somewhere to force Rust to link this module.
/// The call doesn't need to execute, just exist.
///
/// See https://github.com/rust-lang/rust/issues/47384
pub fn init() {}
// LIBCTRU THREADS
pub type _LOCK_T = i32;

Loading…
Cancel
Save