Version 2 (modified by manualwiki, 13 years ago) (diff) |
---|
Macro entity
Preprocessor macro directives can be queried using the macro entity.
Initial selector
- @macro: this selector can be used to start a query with the currently selected macro.
Selectors
In parentheses you find the type of the result elements.
- refs (expression): returns every expression that refers to the given macro with the form ?Macro....
- file (file): returns the file entity that the macro is defined in.
Properties
Macro entities have the following properties:
- name (atom, string): returns the identifier of the macro.
- arity (int): returns the arity of a given parametric macro. In case of a constant macro the arity is 0.
- const (bool): returns true if the given macro is a constant. Note, that there are parametric macros with no parameters, they are treated as non-constant macros.