fn add_builtin(&mut self, args: Vec<TypeInner>, builtin: MacroCall) -> Overload {
        let mut parameters = Vec::with_capacity(args.len());
        let mut parameters_info = Vec::with_capacity(args.len());

        for arg in args {
            parameters.push(self.types.insert(
                Type {
                    name: None,
                    inner: arg,
                },
                Span::default(),
            ));
            parameters_info.push(ParameterInfo {
                qualifier: ParameterQualifier::In,
                depth: false,
            });
        }

        Overload {
            parameters,
            parameters_info,
            kind: FunctionKind::Macro(builtin),
            defined: false,
            internal: true,
            void: false,
        }
    }
/// Helper function, to create a function prototype for a builtin
Helper function, to create a function prototype for a builtin
Helper function to create a function prototype for a builtin
fn add_builtin(&mut self, args: Vec<TypeInner>, builtin: MacroCall) -> Overload {
        let mut parameters = Vec::with_capacity(args.len());
        let mut parameters_info = Vec::with_capacity(args.len());
        for arg in args {
            parameters.push(self.types.insert(
                Type {
                    name: None,
                    inner: arg,
                },
                Span::default(),
            ));
            parameters_info.push(ParameterInfo {
                qualifier: ParameterQualifier::In,
                depth: false,
            });
        }
        Overload {
            parameters,
            parameters_info,
            kind: FunctionKind::Macro(builtin),
            defined: false,
            internal: true,
            void: false,
        }
    }
fn add_builtin ( & mut self , args : Vec < TypeInner > , builtin : MacroCall ) -> Overload { let mut parameters = Vec :: with_capacity ( args . len ( ) ) ; let mut parameters_info = Vec :: with_capacity ( args . len ( ) ) ; for arg in args { parameters . push ( self . types . insert ( Type { name : None , inner : arg , } , Span :: default ( ) , ) ) ; parameters_info . push ( ParameterInfo { qualifier : ParameterQualifier :: In , depth : false , } ) ; } Overload { parameters , parameters_info , kind : FunctionKind :: Macro ( builtin ) , defined : false , internal : true , void : false , } }
Helper function, to create a function prototype for a builtin
Helper function to create a function prototype for a builtin
&mut self
args
Vec<TypeInner>
builtin
MacroCall
&mut self
args
Vec<TypeInner>
builtin
MacroCall