mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-28 22:21:31 +03:00
Whitespace cleanup.
This commit is contained in:
parent
dfa1bd954d
commit
f79b998e87
1 changed files with 5 additions and 5 deletions
|
@ -400,10 +400,10 @@ void DtoCheckPragma(PragmaDeclaration *decl, Dsymbol *s,
|
|||
error("the '%s' pragma template's member must be a function declaration", ident->toChars());
|
||||
fatal();
|
||||
}
|
||||
|
||||
|
||||
TemplateParameters& params = *td->parameters;
|
||||
bool valid_params =
|
||||
params.dim == 3 && params[1]->isTemplateTypeParameter() &&
|
||||
bool valid_params =
|
||||
params.dim == 3 && params[1]->isTemplateTypeParameter() &&
|
||||
params[2]->isTemplateTupleParameter();
|
||||
|
||||
if(valid_params)
|
||||
|
@ -411,10 +411,10 @@ void DtoCheckPragma(PragmaDeclaration *decl, Dsymbol *s,
|
|||
TemplateValueParameter* p0 = params[0]->isTemplateValueParameter();
|
||||
valid_params = valid_params && p0 && p0->valType == Type::tstring;
|
||||
}
|
||||
|
||||
|
||||
if(!valid_params)
|
||||
{
|
||||
error("the '%s' pragma template must have exactly three parameters: a string, a type and a type tuple",
|
||||
error("the '%s' pragma template must have exactly three parameters: a string, a type and a type tuple",
|
||||
ident->toChars());
|
||||
fatal();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue