1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/core
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
..
include core: add WITHOUT_PEDANTIC() and DECLARE_CONSTANT() 2021-11-10 15:22:47 +01:00
assert.c core: Fix assert printf format string 2017-02-16 17:11:22 +01:00
atomic_c11.c core: apply uncrustify patches 2021-02-02 22:21:14 +01:00
atomic_sync.c core: disable uncrustify for atomic_*.c 2020-03-30 17:00:32 +02:00
bitarithm.c core/bitarithm: use __builtin_clz() for bitarithm_msb() 2020-08-04 17:50:09 +02:00
clist.c add copyrights from IOTPUSH project 2019-05-02 12:09:37 +02:00
cond.c core/*: realign ENABLE_DEBUG 2020-10-23 00:45:56 +02:00
doc.txt core/doc: fix alignment 2020-04-21 15:10:56 +02:00
init.c core: apply uncrustify patches 2021-02-02 22:21:14 +01:00
Kconfig core/sched_cb: add module to Kconfig 2020-11-06 15:57:56 +01:00
Makefile core/msg: add message bus 2020-04-28 13:35:05 +02:00
mbox.c core: apply uncrustify patches 2021-02-02 22:21:14 +01:00
msg_bus.c core: Access internal vars via helper funcs 2020-08-06 16:47:33 +02:00
msg.c core/msg.c: fixed msg_queue_print() 2021-06-02 01:28:22 +02:00
mutex.c core/mutex: Add assert guard against usage without threads 2021-02-15 06:01:01 +01:00
panic.c core: apply uncrustify patches 2021-02-02 22:21:14 +01:00
priority_queue.c core/*: replace #if ENABLE_DEBUG with IS_ACTIVE 2020-11-02 21:34:12 +01:00
ringbuffer.c core: uncrustify 2020-03-30 17:02:08 +02:00
rmutex.c core/*: realign ENABLE_DEBUG 2020-10-23 00:45:56 +02:00
sched.c core: make SCHED_TEST_STACK boolean and default to 1 with DEVELHELP 2021-11-05 09:27:00 +01:00
thread_flags.c core: apply uncrustify patches 2021-02-02 22:21:14 +01:00
thread.c core: make SCHED_TEST_STACK boolean and default to 1 with DEVELHELP 2021-11-05 09:27:00 +01:00