1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use clover::State; use clover::helper::make_reference; mod io; mod random; mod math; mod helper; pub fn clover_std_inject_to(state: &mut State) { state.add_native_function("print", io::print); state.add_native_model("IO", make_reference(io::IO {})); state.add_native_model("Random", make_reference(random::Random {})); state.add_native_model("Math", make_reference(math::Math {})); }