Files
systemd/src/test
Lennart Poettering cabb780688 macro: add a macro to test whether a value is in a specified list
Introduce IN_SET() macro to nicely check whether a value a is one of a
few listed values.

This makes writing this:

        if (a == 1 || a == 7 || a == 8 || a == 9)

nicer, by allowing this:

        if (IN_SET(a, 1, 7, 8, 9))

This is particularly useful for state machine enums.
2013-12-02 23:32:34 +01:00
..
2013-06-27 04:17:34 +02:00
2013-10-13 17:56:54 -04:00
2013-02-11 22:22:40 +01:00
2012-05-08 02:33:10 +02:00
2013-02-10 23:06:16 +01:00