Marian Buschsieweke 58e197098d
core: add WITHOUT_PEDANTIC() and DECLARE_CONSTANT()
`WITHOUT_PEDANTIC(expr)` disables `-Wpedantic` for `expr`, but switches
back to the previous diagnostic settings afterwards. This helps defining
macros that are not strictly ISO compliant without having to drop the
`-Wpedantic` flag entirely.

`DECLARE_CONSTANT(identifier, const_expr)` declares an anonymous `enum`
constant named `identifier` and assigns it the value `const_expr`. Here,
`const_expr` has to be a compile time constant, but is not needed to be
an integer constant expression. It basically is a tool to magically
convert a non-integer constant expression into a integer constant
expression.
2021-11-10 15:22:47 +01:00
..
2017-02-16 17:11:22 +01:00
2021-02-02 22:21:14 +01:00
2019-05-02 12:09:37 +02:00
2020-10-23 00:45:56 +02:00
2020-04-21 15:10:56 +02:00
2021-02-02 22:21:14 +01:00
2020-11-06 15:57:56 +01:00
2020-04-28 13:35:05 +02:00
2021-02-02 22:21:14 +01:00
2021-06-02 01:28:22 +02:00
2021-02-02 22:21:14 +01:00
2020-03-30 17:02:08 +02:00
2020-10-23 00:45:56 +02:00
2021-02-02 22:21:14 +01:00