Version 1 (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
After the name of the selector between parentheses you can find the type of the elements in the resulted set.
- 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. If the macro is a constant, the arity is 0.
- const (bool): returns true if the given macro is a constant. Note, that there are parametric macros with no parameters, these are treated as non-constant macros.