New
v1.21.0
Bug fixes
- Fixed bug in raw strings (thanks
@benatkin944). get_fn_metadata_listfunction is markedvolatile.no-stdplussyncshould now build correctly (thanksstargazing-dino947).
New Features
- It is possible to create a function pointer (
FnPtr) which binds to a native Rust function or closure viaFnPtr::from_dnandFnPtr::from_dyn_fn. When called in script, the embedded function will be called (thanks@makspll952).
Enhancements
- The methods
call_fn,call_native_fn,call_fn_rawandcall_native_fn_raware added toEvalContext(thanks@rawhuul954). - A new
internalsfunction,Engine::collect_fn_metadata, is added to collect all functions metadata. This is to facilitate better error reporting for missing functions (thankstherealprof945).