fn call_control(
      &mut self,
      env: &Environment,
      globals: &mut Globals,
      gc: &mut Memory,
      ctl: Control,
      argument_count: usize,
   ) -> Result<(), Error> {
      match ctl {
         Control::GcCollect => {
            if argument_count != 1 {
               return Err(self.error_outside_function_call(
                  None,
                  env,
                  ErrorKind::TooManyArguments,
               ));
            }
            unsafe { gc.collect(self.roots(globals)) }
         }
      }
      Ok(())
   }
/// Handles a call to a control function.
Handles a call to a control function.
Handles a call to a control function .
fn call_control(
      &mut self,
      env: &Environment,
      globals: &mut Globals,
      gc: &mut Memory,
      ctl: Control,
      argument_count: usize,
   ) -> Result<(), Error> {
      match ctl {
         Control::GcCollect => {
            if argument_count != 1 {
               return Err(self.error_outside_function_call(
                  None,
                  env,
                  ErrorKind::TooManyArguments,
               ));
            }
            unsafe { gc.collect(self.roots(globals)) }
         }
      }
      Ok(())
   }
fn call_control ( & mut self , env : & Environment , globals : & mut Globals , gc : & mut Memory , ctl : Control , argument_count : usize , ) -> Result < ( ) , Error > { match ctl { Control :: GcCollect => { if argument_count != 1 { return Err ( self . error_outside_function_call ( None , env , ErrorKind :: TooManyArguments , ) ) ; } unsafe { gc . collect ( self . roots ( globals ) ) } } } Ok ( ( ) ) }
Handles a call to a control function.
Handles a call to a control function .
&mut self
env
&Environment
globals
&mut Globals
gc
&mut Memory
ctl
Control
argument_count
usize