mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Whitespace cleanup.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user