C里面的#pragmaweak的含义 c pragma

#pragma weakto define a weakglobalsymbol. This pragma is used mainly in source files for buildinglibraries. The linker does not produce an error if it is unable toresolve a weaksymbol.

#pragma weak function_name
defines function_name to be a weaksymbol. The linker does not complain if it does not find adefinition for function_name.

#pragma weak function_name1 = function_name2
C里面的#pragmaweak的含义 c pragma
defines function_name1 to be a weaksymbol, which is an alias for the symbolfunction_name2. You must declarefunction_name1 and function_name2before using them in the pragma. For example:

extern void bar(int)
extern void _bar(int)
#pragma weak _bar=bar
If your program calls but does not definefunction_name1, the linker uses the definition fromthe library. However, if your program defines its own version offunction_name1, then the program definition is usedand the weakglobal definition of function_name1 in the library isnot used. If the program directly callsfunction_name2, the definition from the library isused; a duplicate definition of function_name2 causesan error.

  

爱华网本文地址 » http://www.aihuau.com/a/25101017/333728.html

更多阅读

《杀破狼》七杀破军贪狼你明白片名的含义吗? 破军 杀破狼

相关影评: 更多>> 我也看过这部电影 杀破狼是紫微的一种命格,是七杀、破军、贪狼三颗星。按命理学来说天煞孤星和杀破狼合称为两大绝命。七杀为搅乱世界之贼,破军为纵横天下之将,贪狼为奸险诡诈之士。我估计半数以上的观众不知道这部影

C盘里文件夹的用途 c盘中的windows文件夹

你知道c盘的每个文件是干什么用的吗?1. Documents and Settings 是什么文件?答案:是系统用户设置文件夹,包括各个用户的文档、收藏夹、上网浏览信息、配置文件等。注意:这里面的东西不要随便删除,这保存着所有用户的文档和账户设置,如果删

真含意天安门前的华表的含义 华表的含义

天安门前的华表的含义天安门前的华表上的犼,名曰“望君归”天安门前有一对汉白玉雕刻的华表,龙盘于柱,横云飘绕于端;华表的顶端,雕刻着一尊蹲兽,面向宫外,昂首远望。天安门门里也有一对华表,所不同的是,其顶端的蹲兽,是

声明:《C里面的#pragmaweak的含义 c pragma》为网友狼噬夜魇分享!如侵犯到您的合法权益请联系我们删除