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.
- body (string): returns the body of the given macro.
Last modified 12 years ago
Last modified on Sep 28, 2012, 12:24:44 PM