forked from Orchid/orchid
Introduced dylib extension format, cleared up shutdown sequence
This commit is contained in:
@@ -11,12 +11,11 @@ pub use std::tuple::{HomoTpl, Tpl, Tuple, UntypedTuple};
|
||||
pub use macros::macro_system::MacroSystem;
|
||||
pub use macros::mactree::{MacTok, MacTree};
|
||||
use orchid_api as api;
|
||||
use orchid_extension::binary::orchid_extension_main_body;
|
||||
use orchid_extension::dylib_main;
|
||||
use orchid_extension::entrypoint::ExtensionBuilder;
|
||||
|
||||
pub extern "C" fn orchid_extension_main(cx: api::binary::ExtensionContext) {
|
||||
orchid_extension_main_body(
|
||||
cx,
|
||||
ExtensionBuilder::new("orchid-std::main").system(StdSystem).system(MacroSystem),
|
||||
);
|
||||
pub fn builder() -> ExtensionBuilder {
|
||||
ExtensionBuilder::new("orchid-std::main").system(StdSystem).system(MacroSystem)
|
||||
}
|
||||
|
||||
dylib_main! { builder() }
|
||||
|
||||
Reference in New Issue
Block a user