Files
kernel/include/sys/attr.h
T
2020-07-11 22:41:23 +03:00

13 lines
348 B
C

/** vim: set ft=cpp.doxygen :
* @file sys/attr.h
* @brief Storage/function attributes for clarification or
* compiler hints
*/
#pragma once
#define __weak __attribute__((weak))
#define __init(name) \
static void name(void); \
const void *__init_##name __attribute__((section(".init"),used)) = name; \
static void name(void)