2022-10-14 08:33:19 +00:00
|
|
|
use crate::dynamic_data::{Gen7MiscLibrary, MiscLibrary};
|
|
|
|
use crate::ffi::IdentifiablePointer;
|
|
|
|
|
2022-10-14 14:53:30 +00:00
|
|
|
/// Instantiates a new MiscLibrary.
|
2022-10-14 08:33:19 +00:00
|
|
|
#[no_mangle]
|
|
|
|
extern "C" fn gen_7_misc_library_new() -> IdentifiablePointer<Box<dyn MiscLibrary>> {
|
|
|
|
let v: Box<dyn MiscLibrary> = Box::new(Gen7MiscLibrary::new());
|
|
|
|
let id = v.value_identifier();
|
|
|
|
let ptr = Box::into_raw(Box::new(v));
|
|
|
|
IdentifiablePointer::new(ptr, id)
|
|
|
|
}
|