mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 14:12:36 +00:00
ast_return_new doesn't take an operator, we use INSTR_RETURN always, never INSTR_DONE for explicit returns
This commit is contained in:
parent
b4225ea98a
commit
1f8ece7f20
2 changed files with 1 additions and 3 deletions
3
ast.c
3
ast.c
|
@ -200,8 +200,7 @@ void ast_unary_delete(ast_unary *self)
|
|||
mem_d(self);
|
||||
}
|
||||
|
||||
ast_return* ast_return_new(lex_ctx ctx, int op,
|
||||
ast_expression *expr)
|
||||
ast_return* ast_return_new(lex_ctx ctx, ast_expression *expr)
|
||||
{
|
||||
ast_instantiate(ast_return, ctx, ast_return_delete);
|
||||
ast_expression_init((ast_expression*)self, (ast_expression_codegen*)&ast_return_codegen);
|
||||
|
|
1
ast.h
1
ast.h
|
@ -180,7 +180,6 @@ struct ast_return_s
|
|||
ast_expression *operand;
|
||||
};
|
||||
ast_return* ast_return_new(lex_ctx ctx,
|
||||
int op,
|
||||
ast_expression *expr);
|
||||
void ast_return_delete(ast_return*);
|
||||
|
||||
|
|
Loading…
Reference in a new issue