The weak function attribute
Beginning of IBM® Extension.
The weak function attribute causes the symbol
resulting from the function declaration to appear in the object file
as a weak symbol, rather than a global one. The language feature provides
the programmer writing library functions with a way to allow function
definitions in user code to override the library function declaration
without causing duplicate name errors.
Beginning of C++ only.
End of C++ only.
Related information
- #pragma weak in the ILE C/C++ Compiler Reference
- The weak variable attribute
End of IBM Extension.
