Skip to content

Commit

Permalink
Document %__file_name and %__file_lineno
Browse files Browse the repository at this point in the history
  • Loading branch information
ffesti committed Aug 6, 2024
1 parent 46b3e76 commit 20ec3d7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/manual/macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,12 @@ various common operations.

### Diagnostics

| Macro | Description
| -------------- | -----------
| `%trace` | toggle print of debugging information before/after expansion
| `%dump` | print the active (i.e. non-covered) macro table
| Macro | Description | Introduced
| ---------------- | ----------- | ----------
| `%trace` | toggle print of debugging information before/after expansion
| `%dump` | print the active (i.e. non-covered) macro table
| `%__file_name` | current file (if parsing a file) | 4.15
| `%__file_lineno` | line in current file (if parsing a file) | 4.20

Macros may also be automatically included from /usr/lib/rpm/macros.
In addition, rpm itself defines numerous macros. To display the current
Expand Down

0 comments on commit 20ec3d7

Please sign in to comment.