1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

core/kernel_defines: drop CONST definition

This is not used anywhere in RIOT, but causes conflicts with external
library code.

So let's just get rid of this.
This commit is contained in:
Benjamin Valentin 2022-06-15 14:21:28 +02:00 committed by Benjamin Valentin
parent 7bc1fea55a
commit 2e7d35f760

View File

@ -84,18 +84,6 @@ extern "C" {
#define NORETURN
#endif
/**
* @def CONST
* @brief A function declared as *CONST* is #PURE and also not allowed to
* examine global memory. I.e. a *CONST* function cannot even
* dereference a pointer parameter.
*/
#ifdef __GNUC__
#define CONST __attribute__((const))
#else
#define CONST
#endif
/**
* @def PURE
* @brief The function has no effects except the return value and its return