Pass 'basic_macro'
This commit is contained in:
parent
156fed3166
commit
51cad46ad6
866
src/compiler.bbb
866
src/compiler.bbb
File diff suppressed because it is too large
Load Diff
@ -1029,7 +1029,6 @@ struct MacroDeclaration
|
|||||||
{
|
{
|
||||||
Slice<Argument> arguments;
|
Slice<Argument> arguments;
|
||||||
Slice<ConstantArgument> constant_arguments;
|
Slice<ConstantArgument> constant_arguments;
|
||||||
TypeList types;
|
|
||||||
Type* return_type;
|
Type* return_type;
|
||||||
Block* block;
|
Block* block;
|
||||||
String name;
|
String name;
|
||||||
|
@ -2693,7 +2693,11 @@ fn Statement* parse_statement(Module* module, Scope* scope)
|
|||||||
} break;
|
} break;
|
||||||
case StatementStartKeyword::return_st:
|
case StatementStartKeyword::return_st:
|
||||||
{
|
{
|
||||||
auto return_value = parse_value(module, scope, {});
|
Value* return_value = 0;
|
||||||
|
if (module->content[module->offset] != ';')
|
||||||
|
{
|
||||||
|
return_value = parse_value(module, scope, {});
|
||||||
|
}
|
||||||
statement->return_st = return_value;
|
statement->return_st = return_value;
|
||||||
statement->id = StatementId::return_st;
|
statement->id = StatementId::return_st;
|
||||||
} break;
|
} break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user