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<ConstantArgument> constant_arguments;
|
||||
TypeList types;
|
||||
Type* return_type;
|
||||
Block* block;
|
||||
String name;
|
||||
|
@ -2693,7 +2693,11 @@ fn Statement* parse_statement(Module* module, Scope* scope)
|
||||
} break;
|
||||
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->id = StatementId::return_st;
|
||||
} break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user