File tree 2 files changed +14
-0
lines changed 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change
1
+ /// \file List of irep id names and values.
2
+ /// For an explanation of how this works, see irep_ids.h.
3
+
1
4
IREP_ID_TWO(empty_string, )
2
5
IREP_ID_ONE(let)
3
6
IREP_ID_ONE(nil)
Original file line number Diff line number Diff line change 15
15
#include " dstring.h"
16
16
#endif
17
17
18
+ // / \file The irep_ids are generated using a technique called
19
+ // / [X-macros](https://en.wikipedia.org/wiki/X_Macro).
20
+ // / The ids are defined in the file irep_ids.def, using a pair of macros
21
+ // / `IREP_ID_ONE` and `IREP_ID_TWO`.
22
+ // / Definitions of the form `IREP_ID_ONE(param)` will be converted into a
23
+ // / const extern irep_idt with the variable name `ID_param` and the string
24
+ // / value `"param"`.
25
+ // / Definitions of the form `IREP_ID_TWO(param, contents)` will be converted
26
+ // / into a const extern irep_idt with the variable name `ID_param` and the
27
+ // / string value `"contents"`.
28
+
18
29
enum class idt :unsigned
19
30
{
20
31
#define IREP_ID_ONE (the_id ) id_##the_id,
You can’t perform that action at this time.
0 commit comments