Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

dmd.pragmasem

Does semantic analysis for pragmas.

Specification Pragmas

Authors:

Source pragmasem.d

void pragmaDeclSemantic(PragmaDeclaration pd, Scope* sc);
Run semantic on pragma declaration.
Parameters:
PragmaDeclaration pd pragma declaration or statement to evaluate
Scope* sc enclosing scope
bool pragmaStmtSemantic(PragmaStatement ps, Scope* sc);
Run semantic on pragma statement.
Parameters:
PragmaStatement ps pragma statement to evaluate
Scope* sc enclosing scope
Returns : true if pragma is valid, or false if an error was found
package PINLINE evalPragmaInline(Loc loc, Scope* sc, Expressions* args);
Interpret a pragma(inline, x)
Parameters:
Loc loc location for error messages
Scope* sc scope for evaluation of argument
Expressions* args pragma arguments
Returns:
corresponding PINLINE state