Encapsulate register_fn_raw parameters into NativeCallContext.
This commit is contained in:
@@ -12,4 +12,8 @@ mod fn_ptr_functions {
|
||||
pub fn name(f: &mut FnPtr) -> ImmutableString {
|
||||
f.get_fn_name().clone()
|
||||
}
|
||||
#[rhai_fn(name = "is_anonymous", get = "is_anonymous")]
|
||||
pub fn is_anonymous(f: &mut FnPtr) -> bool {
|
||||
f.is_anonymous()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user