[][src]Function rosy::vm::eval_protected

pub unsafe fn eval_protected(script: &CStr) -> Result<AnyObject>

Evaluates script in an isolated binding, returning an exception if one is raised.

Variables:

  • __FILE__: "(eval)"
  • __LINE__: starts at 1

Safety

Code executed from script may void the type safety of objects accessible from Rust. For example, if one calls push on Array<A> with an object of type B, then the inserted object will be treated as being of type A.