mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-05 04:06:45 +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");
|