| |||
| Home > Compiler-specific Features > #pragma weak symbol, #pragma weak symbol1 = symbol2 | |||
This pragma is a deprecated language extension to mark symbols
as weak or to define weak aliases of symbols. It is an alternative
to using the __weak keyword or the GCC weak and alias attributes.
In the following example, weak_fn is declared
as a weak alias of __weak_fn:
extern void weak_fn(int a);
#pragma weak weak_fn = __weak_fn
void __weak_fn(int a)
{
...
}