ast.cpp
/*********************************************************************/
/* AST codegen part
 * by convention you must never pass nullptr to the 'ir_value **out'
 * parameter. If you really don't care about the output, pass a dummy.
 * But I can't imagine a pituation where the output is truly unnecessary.
 */
AST codegen part
by convention you must never pass nullptr to the 'ir_value **out'
parameter. If you really don't care about the output, pass a dummy.
But I can't imagine a pituation where the output is truly unnecessary.
AST codegen part by convention you must never pass nullptr to the ' ir_value ** out ' parameter . If you really don ' t care about the output pass a dummy . But I can ' t imagine a pituation where the output is truly unnecessary .
static void codegen_output_type(ast_expression *self, ir_value *out)
{
    if (out->m_vtype == TYPE_FIELD)
        out->m_fieldtype = self->m_next->m_vtype;
    if (out->m_vtype == TYPE_FUNCTION)
        out->m_outtype = self->m_next->m_vtype;
}
static void codegen_output_type ( ast_expression * self , ir_value * out ) { if ( out -> m_vtype == TYPE_FIELD ) out -> m_fieldtype = self -> m_next -> m_vtype ; if ( out -> m_vtype == TYPE_FUNCTION ) out -> m_outtype = self -> m_next -> m_vtype ; }
AST codegen part
 by convention you must never pass nullptr to the 'ir_value **out'
 parameter.
AST codegen part by convention you must never pass nullptr to the ' ir_value ** out ' parameter .