[development] What does __attribute__((weak)) do

 

Simply put, it is when "duplicate definitions occur". The declaree will be overwritten by the conflicter.

 

This also involves the use of weak and alias together.

 

See, there are two examples inside, which are very easy to understand.

https://my.oschina.net/senmole/blog/50887

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324572893&siteId=291194637