Use bitflags.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
use crate::module::ModuleFlags;
|
||||
use crate::plugin::*;
|
||||
use crate::{def_package, Position, RhaiResultOf, ERR, INT};
|
||||
#[cfg(feature = "no_std")]
|
||||
@@ -54,7 +55,7 @@ macro_rules! reg_functions {
|
||||
def_package! {
|
||||
/// Basic mathematical package.
|
||||
pub BasicMathPackage(lib) {
|
||||
lib.standard = true;
|
||||
lib.flags |= ModuleFlags::STANDARD_LIB;
|
||||
|
||||
// Integer functions
|
||||
combine_with_exported_module!(lib, "int", int_functions);
|
||||
|
Reference in New Issue
Block a user