/ATTRIBUTE_WEAK

C override mechanism using attribute weak.

Primary LanguageC

C override mechanism using attribute weak

1.Run make OVERRIDE=0 for calling no override handler.

image

2.Run make OVERRIDE=1 for calling the override handler.

image

3.Run nm to see weak and strong symbols

image