pub unsafe fn run_function(&self, function: &FunctionValue, args: &[&GenericValue]) -> GenericValue {
        let mut args: Vec<LLVMGenericValueRef> = args.iter()
                                                     .map(|val| val.generic_value)
                                                     .collect();

        let value = LLVMRunFunction(self.execution_engine_inner(), function.as_value_ref(), args.len() as u32, args.as_mut_ptr()); // REVIEW: usize to u32 ok??

        GenericValue::new(value)
    }
// TODOC: Marked as unsafe because input function could very well do something unsafe. It's up to the caller
// to ensure that doesn't happen by defining their function correctly.
Marked as unsafe because input function could very well do something unsafe. It's up to the caller
to ensure that doesn't happen by defining their function correctly.
Marked as unsafe because input function could very well do something unsafe . It ' s up to the caller to ensure that doesn ' t happen by defining their function correctly .
pub unsafe fn run_function(&self, function: &FunctionValue, args: &[&GenericValue]) -> GenericValue {
        let mut args: Vec<LLVMGenericValueRef> = args.iter()
                                                     .map(|val| val.generic_value)
                                                     .collect();
        let value = LLVMRunFunction(self.execution_engine_inner(), function.as_value_ref(), args.len() as u32, args.as_mut_ptr()); // REVIEW: usize to u32 ok??
        GenericValue::new(value)
    }
pub unsafe fn run_function ( & self , function : & FunctionValue , args : & [ & GenericValue ] ) -> GenericValue { let mut args : Vec < LLVMGenericValueRef > = args . iter ( ) . map ( | val | val . generic_value ) . collect ( ) ; let value = LLVMRunFunction ( self . execution_engine_inner ( ) , function . as_value_ref ( ) , args . len ( ) as u32 , args . as_mut_ptr ( ) ) ; // REVIEW: usize to u32 ok?? GenericValue :: new ( value ) }
TODOC: Marked as unsafe because input function could very well do something unsafe.
TODOC : Marked as unsafe because input function could very well do something unsafe .
&self
function
&FunctionValue
args
&[&GenericValue]
&self
function
&FunctionValue
args
&[&GenericValue]