mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-26 00:32:02 +00:00
8 lines
182 B
C
8 lines
182 B
C
#define linker_warning(x, msg) \
|
|
static const char __warn_##x[] \
|
|
__attribute__((used, section(".gnu.warning." #x))) \
|
|
= msg
|
|
|
|
void bar (void) {}
|
|
linker_warning(bar, "Bad bar");
|