![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
Go to the source code of this file.
Macros | |
| #define | GENERATE_ONE_CMP(PRE, RET, QUAL, COMPARATOR, MY_TYPE, ...) |
| #define | GENERATE_EQUAL(prefix, qualification, my_type, args...) |
| #define | GENERATE_SPACESHIP(prefix, ret, qualification, my_type, args...) |
| #define | GENERATE_CMP(args...) |
| #define | GENERATE_CMP_EXT(prefix, ret, my_type, args...) |
| #define GENERATE_CMP | ( | args... | ) |
Awful hacky generation of the comparison operators by doing a lexicographic comparison between the chosen fields.
will generate comparison operators semantically equivalent to:
| #define GENERATE_CMP_EXT | ( | prefix, | |
| ret, | |||
| my_type, | |||
| args... ) |
| prefix | This is for something before each declaration like template<classname Foo>. |
| my_type | the type are defining operators for. |
| #define GENERATE_EQUAL | ( | prefix, | |
| qualification, | |||
| my_type, | |||
| args... ) |
| #define GENERATE_ONE_CMP | ( | PRE, | |
| RET, | |||
| QUAL, | |||
| COMPARATOR, | |||
| MY_TYPE, | |||
| ... ) |
| #define GENERATE_SPACESHIP | ( | prefix, | |
| ret, | |||
| qualification, | |||
| my_type, | |||
| args... ) |